Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix error message for unmatched parameterized type variable
Consider the following type error: def ('!') ({}) ([$.UnaryTypeVariable ('f') ($.String)]) (() => 8) () Incorrect error message (before): Type-variable constraint violation ! :: () -> f String ^^^^^^^^ 1 1) 8 :: Number Since there is no type of which all the above values are members, the type-variable constraint has been violated. Correct error message (after): Invalid value ! :: () -> f String ^^^^^^^^ 1 1) 8 :: Number The value at position 1 is not a member of ‘f String’.
- Loading branch information