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
In this example, the compiler gives an "overridden types" error on the last line (Length : 2) because it matches that to the 2 : Hole Size type, which is invalid in this context.
If the matching type is invalid but treating the annotation as an alias is valid, I think that would be the expected behaviour.
Type
mm, Hole Size, Product, SKU : Type
/\d+\.?\d* : mm
0, 1, 2, 3, 4 : Hole Size
Machine Screw : Product
Length : mm
1111 : SKU, Machine Screw
Length : 22
2222 : SKU, Machine Screw
Length : 2
The text was updated successfully, but these errors were encountered:
In this example, the compiler gives an "overridden types" error on the last line (
Length : 2
) because it matches that to the2 : Hole Size
type, which is invalid in this context.If the matching type is invalid but treating the annotation as an alias is valid, I think that would be the expected behaviour.
The text was updated successfully, but these errors were encountered: