You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems there is a regression, at least comparing Swift 4.2 snapshot 2018-07-28 with 2018-06-21 (on linux) when trying to optionally cast a instance of NSNumber to Bool. Here is a snippet that reproduces the issue
importFoundationleta = NSNumber(value: 10)
letb: Any = aprint("\(b as? Bool)")
On macOS with Swift 4.1 the output is nil. On Linux with Swift 4.2 snapshot 2018-07-28 the output is Optional(true).
The text was updated successfully, but these errors were encountered:
Environment
Ubuntu 16.04
Swift version 4.2-dev (LLVM da1c9a3ae4, Clang 78aa734eee, Swift fe1f442af0)
Additional Detail from JIRA
md5: 5a624138e0df69b003fa2f905bee94d2
Issue Description:
It seems there is a regression, at least comparing Swift 4.2 snapshot 2018-07-28 with 2018-06-21 (on linux) when trying to optionally cast a instance of NSNumber to Bool. Here is a snippet that reproduces the issue
On macOS with Swift 4.1 the output is nil. On Linux with Swift 4.2 snapshot 2018-07-28 the output is Optional(true).
The text was updated successfully, but these errors were encountered: