mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-29 05:41:50 +02:00
force dynamic typing on DynamicObject.Type to mitigate optimization issues
This commit is contained in:
@@ -121,7 +121,7 @@ extension CoreStoreObject {
|
|||||||
|
|
||||||
return unsafeDowncast(coreStoreObject, to: self)
|
return unsafeDowncast(coreStoreObject, to: self)
|
||||||
}
|
}
|
||||||
func forceTypeCast<T: CoreStoreObject>(_ type: DynamicObject.Type, to: T.Type) -> T.Type {
|
func forceTypeCast<T: CoreStoreObject>(_ type: AnyClass, to: T.Type) -> T.Type {
|
||||||
|
|
||||||
return type as! T.Type
|
return type as! T.Type
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user