Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xcode 10.0 (10A255), Swift 4.2
md5: 942adf7e130c74daa296f6ca84a5bcbc
relates to:
Issue Description:
In the following code the "b is Error" incorrectly returns false though the b variable holds an Error value.
"b is Error"
false
b
Error
struct MyError: Error { } let a: Any! = MyError() let b: Any = a b is Error // false
The result of the type check should be true. This issue might be related to SR-4552.
true
The text was updated successfully, but these errors were encountered:
CC @jckarter @swift-ci create
Sorry, something went wrong.
#33561 should fix this for the non-optimized case (where the cast is being handled by the runtime). There may still be issues with optimized casts, though.
This now appears to be fixed for both debug and release builds.
tbkka
No branches or pull requests
Environment
Xcode 10.0 (10A255), Swift 4.2
Additional Detail from JIRA
md5: 942adf7e130c74daa296f6ca84a5bcbc
relates to:
Issue Description:
In the following code the
"b is Error"
incorrectly returnsfalse
though theb
variable holds anError
value.The result of the type check should be
true
. This issue might be related to SR-4552.The text was updated successfully, but these errors were encountered: