Files
mercury/tests/invalid/ambiguous_overloading_error.err_exp
Zoltan Somogyi 660cfe4f83 s/predicate symbol predicate/predicate symbol/ in a diagnostic.
We used to generate diagnostics of the form

    The predicate symbol predicate `<'/2 is also overloaded here.

The second "predicate" is pure noise. It could never be "function",
even though the code generating that message was prepared for that.

compiler/typecheck.m:
    When typechecking a *predicate* call, don't specify the predicate
    being called using a data structure that can also refer to functions.

compiler/typecheck_info.m:
    When representing an overloaded predicate name, as opposed to
    an overloaded function name, don't include a pred_or_func indication
    that should *always* be pf_predicate.

compiler/typecheck_errors.m:
    When reporting an overloaded predicate name, or talking about a
    predicate's argument vector, do not take a pred_or_func indication,
    since it should *always* be pf_predicate.

tests/invalid/ambiguous_overloading_error.err_exp:
tests/warnings/ambiguous_overloading.exp:
    Don't expect the redundant "predicate" in the overload error message.

tests/invalid/max_error_line_width.err_exp:
tests/invalid/max_error_line_width.m:
    The deletion of the redundant "predicate" in overload error messages
    made them all fit on one line, robbing this test of its task of testing
    longer-than-80-column output lines. Change the test so that the overload
    is not between int.< and float.<, but between the unchecked_left_shift
    functions in int and uint, since the longer function name yields error
    message lines in the length range this test case wants to test.

tests/invalid/ambiguous_overloading_error.m:
tests/invalid/arg_permutation.m:
tests/invalid/assert_in_interface.m:
tests/invalid/bad_detism_category.m:
    Fix programming style.

tests/invalid/assert_in_interface.err_exp:
    Update a line number.
2020-10-26 20:28:18 +11:00

84 lines
5.4 KiB
Plaintext

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: 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: The function symbol `f'/0 is also
ambiguous_overloading_error.m:058: 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: 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: 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: 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: The predicate symbol `<'/2 is also
ambiguous_overloading_error.m:068: overloaded here.
ambiguous_overloading_error.m:069: The predicate symbol `<'/2 is also
ambiguous_overloading_error.m:069: overloaded here.
ambiguous_overloading_error.m:070: The predicate symbol `<'/2 is also
ambiguous_overloading_error.m:070: overloaded here.
ambiguous_overloading_error.m:071: The predicate symbol `<'/2 is also
ambiguous_overloading_error.m:071: overloaded here.
ambiguous_overloading_error.m:072: The predicate symbol `<'/2 is also
ambiguous_overloading_error.m:072: overloaded here.
ambiguous_overloading_error.m:073: The predicate symbol `<'/2 is also
ambiguous_overloading_error.m:073: overloaded here.
ambiguous_overloading_error.m:074: The predicate symbol `<'/2 is also
ambiguous_overloading_error.m:074: overloaded here.
ambiguous_overloading_error.m:075: The predicate symbol `<'/2 is also
ambiguous_overloading_error.m:075: overloaded here.
ambiguous_overloading_error.m:076: The predicate symbol `<'/2 is also
ambiguous_overloading_error.m:076: overloaded here.
ambiguous_overloading_error.m:077: The predicate symbol `<'/2 is also
ambiguous_overloading_error.m:077: overloaded here.
ambiguous_overloading_error.m:078: The predicate symbol `<'/2 is also
ambiguous_overloading_error.m:078: 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: 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: The function symbol `lookup_bool_option'/2
ambiguous_overloading_error.m:122: is also overloaded here.
ambiguous_overloading_error.m:123: The function symbol `lookup_bool_option'/2
ambiguous_overloading_error.m:123: is also overloaded here.
ambiguous_overloading_error.m:124: The function symbol `lookup_bool_option'/2
ambiguous_overloading_error.m:124: is also overloaded here.
ambiguous_overloading_error.m:125: The function symbol `lookup_bool_option'/2
ambiguous_overloading_error.m:125: is also overloaded here.
ambiguous_overloading_error.m:126: The function symbol `lookup_bool_option'/2
ambiguous_overloading_error.m:126: is also overloaded here.
For more information, recompile with `-E'.