mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-11-22 16:34:05 +01:00
test reverting back to unsafeDowncast
This commit is contained in:
1 parent
2559375491
commit
535b33ca75
1 file changed
+1
-2
@@ -115,8 +115,7 @@ extension NSManagedObject: DynamicObject {
|
|||||||
|
|
||||||
public class func cs_fromRaw(object: NSManagedObject) -> Self {
|
public class func cs_fromRaw(object: NSManagedObject) -> Self {
|
||||||
|
|
||||||
// unsafeDowncast fails debug assertion starting Swift 5.2
|
return unsafeDowncast(object, to: self)
|
||||||
return _unsafeUncheckedDowncast(object, to: self)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static func cs_matches(object: NSManagedObject) -> Bool {
|
public static func cs_matches(object: NSManagedObject) -> Bool {
|
||||||
|
|||||||
Reference in new issue
Block a user