[SR-4451] type(of:) behaviour change from Swift 3.0.2 to Swift 3.1. #47028
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
good first issue
Good for newcomers
type checker
Area → compiler: Semantic analysis
Attachment: Download
Additional Detail from JIRA
md5: 59a922e46e7486ff5d399c2af0e0d2d8
Issue Description:
It seems that the behaviour of "type(of: )" has changed from Swift 3.0.2 to Swift 3.1 w.r.t. optional Any? closure parameters referenced as Any.
"type(of: oItem) as? T.Type" below returns "__NSCFString.Type" when using Swift 3.0.2 compiler and "nil" when using Swift 3.1 compiler.
The text was updated successfully, but these errors were encountered: