Gradualizer icon indicating copy to clipboard operation
Gradualizer copied to clipboard

Don't use normalized types in type errors

Open zuiderkwast opened this issue 6 years ago • 0 comments

From this comment by @Zalastax:

[...] At least some types get normalized and their normalized form gets reported in the error. E.g.

-spec f(char()) -> ok.
f(C) -> C.

The variable 'C' on line 5 has type 0..1114111 but is expected to have type ok

We can test this now, using the return_errors option.

zuiderkwast avatar Jan 11 '19 17:01 zuiderkwast