mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-24 13:53:54 +00:00
compiler/typecheck_error_overload.m:
Generalize the error message about variables having ambiguous types.
Instead of printing just two possibilities regardless of how many exist,
print all of them. Also, improve the wording of the message.
compiler/typecheck_clauses.m:
Make the same generalization in a pre-diagnostic test, and
pass *all* the type assigns to typecheck_error_overload.m, not just
the first two.
compiler/add_pragma.m:
Color a diagnostic.
tests/invalid/bug83.err_exp:
tests/invalid/coerce_ambig.err_exp:
Expect updated diagnostics.
8 lines
438 B
Plaintext
8 lines
438 B
Plaintext
bug83.m:027: Error: [38;5;203mambiguous function name[39;49m [38;5;87m`make_io_error'/1[39;49m in
|
||
bug83.m:027: `:- pragma foreign_export' declaration.
|
||
bug83.m:027: The possible matches are:
|
||
bug83.m:027: [38;5;226mfunction `io.make_io_error'/1,[39;49m
|
||
bug83.m:027: [38;5;226mfunction `bug83.make_io_error'/1.[39;49m
|
||
bug83.m:027: An explicit module qualifier may be necessary to select the
|
||
bug83.m:027: right match.
|