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
For me, it looks like when the casting is done to a protocol TrackingDelegate that doesn't have the class conformance like "protocol TrackingDelegate: class", the object is considered as a value type and not the reference one.
Environment
OS X: 10.14.2 (18C54)
Xcode: Version 10.1 (10B61)
swiftc --version
Apple Swift version 4.2.1 (swiftlang-1000.11.42 clang-1000.11.45.1)
Target: x86_64-apple-darwin18.2.0
Additional Detail from JIRA
md5: 358532371b4d064581630d4043d15438
Issue Description:
Hi! Thanks for your efforts on improving the Swift ecosystem.
When I run the following code:
I get the exception on line:
with the following message:
The actual exception is thrown on line:
For me, it looks like when the casting is done to a protocol TrackingDelegate that doesn't have the class conformance like "protocol TrackingDelegate: class", the object is considered as a value type and not the reference one.
It might have something similar to https://bugs.swift.org/browse/SR-9207 , but I'm not.
The text was updated successfully, but these errors were encountered: