Incorrect span for mismatched type error during FRU #628
Labels
A-type-system
Area: Type system
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
In the following example, foo is bool when it's expected to be int.
The mismatched type error spans the entire rec being assigned to variable b, instead of just the incorrect expression, 'true'. For errors that occur in large records this can get pretty confusing.
The text was updated successfully, but these errors were encountered: