mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-11-29 03:42:36 +01:00
force dynamic typing on DynamicObject.Type to mitigate optimization issues
This commit is contained in:
1 parent
305e2b61a0
commit
21961780d4
1 file changed
+1
-1
@@ -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