[SR-8731] Distinct results for nullity checking #51240
Labels
access control
Feature → modifiers: Access control and access levels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
regression
swift 4.2
type checker
Area → compiler: Semantic analysis
Attachment: Download
Environment
iOS 11, Xcode 9.4, Swift 4.1
iOS 12, Xcode 10 beta 6, Swift 4.2
Additional Detail from JIRA
md5: 426f1ff173e8149553c083039341e8b4
Issue Description:
When running a piece of code in Xcode's playground (please refer the attachment), Xcode 9.4 and Xcode 10 got distinct results
In Xcode 9.4 playground I got false, yet Xcode 10 beta 6 I got true. Perhaps swift compiler changed its way to resolve generics and then led the issue. I haven't reasoned which of results sounds more logical; therefore I am not sure whether this is a bug.
The text was updated successfully, but these errors were encountered: