[SR-8762] Array of NSNumber inferred as UnsafeRawPointer
.
#51270
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
type checker
Area → compiler: Semantic analysis
Attachment: Download
Environment
Xcode 9.4.1 & Xcode 10 GM
Additional Detail from JIRA
md5: 1263fc95de2adf4964240ae18f3c6116
Issue Description:
When using the following generic function:
And passing in an array of `NSNumber`s , `T` is inferred as `UnsafeRawPointer` instead of `[NSNumber]`:
Output:
Screenshot might be easier to look at 🙂
The text was updated successfully, but these errors were encountered: