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
Update the static type migration to convert owned intersection types
T{} / Any*{} to T/Any*
If the intersection type has no interface types, then return the legacy type as-is.
This prevents the migration from creating an intersection type with no interface types, as static to sema type conversion ignores the legacy type.
Any*{A,...} -> {A,...}
If the intersection type has no or an AnyStruct/AnyResource legacy type, and has at least one interface type, then return the intersection type without the legacy type.
T{A,...} -> T
If the intersection type has a legacy type, and has at least one interface type, then return the legacy type as-is.
The text was updated successfully, but these errors were encountered:
turbolent
changed the title
Convert AnyStruct{I}/AnyResource{I} restricted types to {I} in state-migration
Improve migration of AnyStruct/AnyResource{I} and AnyStruct/AnyResource{} in state-migration
Feb 15, 2024
turbolent
changed the title
Improve migration of AnyStruct/AnyResource{I} and AnyStruct/AnyResource{} in state-migration
Improve migration of intersection types
Feb 17, 2024
Update the static type migration to convert owned intersection types
T{}
/Any*{}
toT/Any*
If the intersection type has no interface types, then return the legacy type as-is.
This prevents the migration from creating an intersection type with no interface types, as static to sema type conversion ignores the legacy type.
Any*{A,...}
->{A,...}
If the intersection type has no or an AnyStruct/AnyResource legacy type, and has at least one interface type, then return the intersection type without the legacy type.
T{A,...}
->T
If the intersection type has a legacy type, and has at least one interface type, then return the legacy type as-is.
The text was updated successfully, but these errors were encountered: