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
{{ message }}
Invalid error range for special cases of NoEquality types #15518
[<NoEquality; NoComparison; Struct>]typeMyType(field: string)=member_.Field= field
moduleinternalMyTypeHelpers =letf(myType:MyType)=42letg myType =letx= myType
lety= myType
letz= x = y
f myType
Expected behavior
An error on the line let z = x = y
Actual behavior
Error on the last line:
Related information
Any of the below fixes the case:
Removing explicit type in the first helper - that the first helper infers input as a general type and the second helper infer input as something with equality
Adding explicit type to the second helper - just works as expected
Also, note that the error message mentioned the correct range.
Activity