[SR-2290] Casting Bool
to NSNumber
that passed by generic parameter conforming ExpressibleByBooleanLiteral
cause +[NSNumber initWithBooleanLiteral:]: unrecognized selector sent to class
#44897
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
crash
Bug: A crash, i.e., an abnormal termination of software
run-time crash
Bug → crash: Swift code crashed during execution
Environment
Xcode 8 beta 4 (8S188o)
Additional Detail from JIRA
md5: a48db1cb1149b420c0ce248c68a938a7
Issue Description:
As workaround for SE-0109, I wrote code following:
and got following error:
This issue also happen with `NSDecimalNumber`.
Following code is working as expected:
The text was updated successfully, but these errors were encountered: