Files
mercury/tests/invalid/bug83.err_exp
Zoltan Somogyi adec27726b Handle errors about ambiguous types better.
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.
2024-05-27 19:28:45 +10:00

8 lines
438 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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.