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
// Key paths to stored properties are only single-component if MemoryLayout.offset(of:) returns an offset
61
-
func project<T>(_:T.Type)->Bool{
62
-
_keyPathOffset(T.self,self)==nil
63
-
}
64
-
if_openExistential(Self.rootType, do: project){
63
+
// Stored property components are either just the payload, or the payload plus 32 bits if the offset is not stored in-line
64
+
// Note: we cannot use MemoryLayout.offset(of:) here because not all single-component keypaths have direct offsets (for example, stored properties in final classes)
0 commit comments