[SR-6309] Could not cast value of type '_SwiftValue' to a protocol #48859
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 9.1 (9B55)
Apple Swift version 4.0.2 (swiftlang-900.0.69.2 clang-900.0.38)
Target: x86_64-apple-macosx10.
Additional Detail from JIRA
md5: 26d414d55a3bcfef503c6080d6743ae6
duplicates:
Issue Description:
Here is the code I'm trying to execute in a playground:
The program crashes when I'm trying to cast `note.object` to P. Seems like it has something to do with bridging to `id`, because when I just write:
everything is fine.
The text was updated successfully, but these errors were encountered: