mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 17:33:38 +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.
438 B
438 B
bug83.m:027: Error: ambiguous function name `make_io_error'/1 in
bug83.m:027: `:- pragma foreign_export' declaration.
bug83.m:027: The possible matches are:
bug83.m:027: function `io.make_io_error'/1,
bug83.m:027: function `bug83.make_io_error'/1.
bug83.m:027: An explicit module qualifier may be necessary to select the
bug83.m:027: right match.
bug83.m:027: `:- pragma foreign_export' declaration.
bug83.m:027: The possible matches are:
bug83.m:027: function `io.make_io_error'/1,
bug83.m:027: function `bug83.make_io_error'/1.
bug83.m:027: An explicit module qualifier may be necessary to select the
bug83.m:027: right match.