[SR-10337] Swift 5 regression: Incorrect type cast from AnyObject to incompatible NSObject subclass. #52737
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
regression
runtime
The Swift Runtime
swift 5.0
Environment
Xcode 10.2 (10E125)
Apple Swift version 5.0 (swiftlang-1001.0.69.5 clang-1001.0.46.3)
Target: x86_64-apple-darwin18.5.0
Additional Detail from JIRA
md5: 115bba5912ffd2e281835116b906c630
Issue Description:
The following code crashes in Xcode 10.2 as the model is incorrectly cast to an NSManagedObject instance:
This is not a problem in Xcode 10.1.
The text was updated successfully, but these errors were encountered: