Bad file position in an error message when something wrong with an argument of a function type with a named argument #179
Labels
issue: bad message
When library reports some problem badly
part: derivation
Related to automated derivation of generators
status: confirmed bug
Something isn't working
status: upstream
Upstream issue
Derived generators currently cannot have unnamed explicit arguments, e.g. this is wrong and should fail:
Also, there cannot be any unused explicit arguments, e.g. this is wrong and should fail:
And both these derivation indeed fail, as should. But their error messages are a bit misleading:
They should highlight the whole type, or at least argument's name (if present) instead, something like this:
and one of these:
or
or
The text was updated successfully, but these errors were encountered: