Files
mercury/tests/invalid/ambiguous_overloading_error.err_exp
Zoltan Somogyi f9b3e8ad26 Add color to some warnings.
compiler/post_term_analysis.m:
    Add color to a warning message.

compiler/typecheck_error_overload.m:
    Add color to a second warning message. Separate independent parts
    of this message by blank lines, and simplify some of the text.

compiler/error_util.m:
    Add a utility predicate to help construct the updated diagnostic
    in typecheck_error_overload.m.

compiler/typecheck_error_util.m:
    Generalize an existing utility predicate for use by the updated diagnostic
    in typecheck_error_overload.m.

tests/invalid/ambiguous_overloading_error.err_exp:
tests/invalid/bad_ambiguity_msg.err_exp:
tests/invalid/max_error_line_width.err_exp:
tests/warnings/ambiguous_overloading.err_exp:
tests/warnings/non_term_user_special.err_exp:
    Expect the updated diagnostics.
2024-12-14 02:21:17 +11:00

5.0 KiB

ambiguous_overloading_error.m:059: In clause for predicate `ambig_overload1'/1:
ambiguous_overloading_error.m:059: error: excessively ambiguous overloading.
ambiguous_overloading_error.m:059: The following symbol was overloaded in the
ambiguous_overloading_error.m:059: following contexts.
ambiguous_overloading_error.m:057:
ambiguous_overloading_error.m:057: The function symbol `f'/0.
ambiguous_overloading_error.m:057: The possible matches are:
ambiguous_overloading_error.m:057: the builtin type constructor
ambiguous_overloading_error.m:057: `character',
ambiguous_overloading_error.m:057: the type constructor
ambiguous_overloading_error.m:057: `ambiguous_overloading_error.bar'/0,
ambiguous_overloading_error.m:057: the type constructor
ambiguous_overloading_error.m:057: `ambiguous_overloading_error.foo'/0.
ambiguous_overloading_error.m:058: That symbol is also overloaded here.
ambiguous_overloading_error.m:059: Warning: the variable `L' is unified with a
ambiguous_overloading_error.m:059: term containing itself.
ambiguous_overloading_error.m:062: In clause for predicate `ambig_overload2'/1:
ambiguous_overloading_error.m:062: warning: highly ambiguous overloading.
ambiguous_overloading_error.m:062: The following symbols were overloaded in
ambiguous_overloading_error.m:062: the following contexts.
ambiguous_overloading_error.m:062:
ambiguous_overloading_error.m:062: The function symbol `a1'/0.
ambiguous_overloading_error.m:062: The possible matches are:
ambiguous_overloading_error.m:062: the type constructor
ambiguous_overloading_error.m:062: `ambiguous_overloading_error.baz'/0,
ambiguous_overloading_error.m:062: the type constructor
ambiguous_overloading_error.m:062: `ambiguous_overloading_error.qux'/0.
ambiguous_overloading_error.m:062:
ambiguous_overloading_error.m:062: The function symbol `a2'/0.
ambiguous_overloading_error.m:062: The possible matches are:
ambiguous_overloading_error.m:062: the type constructor
ambiguous_overloading_error.m:062: `ambiguous_overloading_error.baz'/0,
ambiguous_overloading_error.m:062: the type constructor
ambiguous_overloading_error.m:062: `ambiguous_overloading_error.qux'/0.
ambiguous_overloading_error.m:116: In clause for predicate `test_lt'/1:
ambiguous_overloading_error.m:116: error: excessively ambiguous overloading.
ambiguous_overloading_error.m:116: The following symbol was overloaded in the
ambiguous_overloading_error.m:116: following contexts.
ambiguous_overloading_error.m:067:
ambiguous_overloading_error.m:067: The predicate symbol `<'/2.
ambiguous_overloading_error.m:067: The possible matches are:
ambiguous_overloading_error.m:067: predicate `float.<'/2,
ambiguous_overloading_error.m:067: predicate `int.<'/2.
ambiguous_overloading_error.m:068: That symbol is also overloaded here.
ambiguous_overloading_error.m:069: That symbol is also overloaded here.
ambiguous_overloading_error.m:070: That symbol is also overloaded here.
ambiguous_overloading_error.m:071: That symbol is also overloaded here.
ambiguous_overloading_error.m:072: That symbol is also overloaded here.
ambiguous_overloading_error.m:073: That symbol is also overloaded here.
ambiguous_overloading_error.m:074: That symbol is also overloaded here.
ambiguous_overloading_error.m:075: That symbol is also overloaded here.
ambiguous_overloading_error.m:076: That symbol is also overloaded here.
ambiguous_overloading_error.m:077: That symbol is also overloaded here.
ambiguous_overloading_error.m:078: That symbol is also overloaded here.
ambiguous_overloading_error.m:126: In clause for predicate
ambiguous_overloading_error.m:126: `set_browser_param_from_option_table'/3:
ambiguous_overloading_error.m:126: warning: highly ambiguous overloading.
ambiguous_overloading_error.m:126: The following symbol was overloaded in the
ambiguous_overloading_error.m:126: following contexts.
ambiguous_overloading_error.m:121:
ambiguous_overloading_error.m:121: The function symbol
ambiguous_overloading_error.m:121: `lookup_bool_option'/2.
ambiguous_overloading_error.m:121: The possible matches are:
ambiguous_overloading_error.m:121: predicate `getopt.lookup_bool_option'/3,
ambiguous_overloading_error.m:121: function `getopt.lookup_bool_option'/2.
ambiguous_overloading_error.m:122: That symbol is also overloaded here.
ambiguous_overloading_error.m:123: That symbol is also overloaded here.
ambiguous_overloading_error.m:124: That symbol is also overloaded here.
ambiguous_overloading_error.m:125: That symbol is also overloaded here.
ambiguous_overloading_error.m:126: That symbol is also overloaded here.
For more information, recompile with `-E'.