Files
mercury/tests/invalid/max_error_line_width.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

60 lines
4.7 KiB
Plaintext

max_error_line_width.m:056: In clause for predicate `ambig_overload1'/1:
max_error_line_width.m:056: error: excessively ambiguous overloading.
max_error_line_width.m:056: This caused the type checker to exceed its limits. It may also make your code difficult to
max_error_line_width.m:056: understand.
max_error_line_width.m:056: The following symbol was overloaded in the following contexts.
max_error_line_width.m:054: The function symbol `f'/0.
max_error_line_width.m:054: The possible matches are:
max_error_line_width.m:054: the builtin type constructor `character',
max_error_line_width.m:054: the type constructor `max_error_line_width.bar'/0,
max_error_line_width.m:054: the type constructor `max_error_line_width.foo'/0.
max_error_line_width.m:055: The function symbol `f'/0 is also overloaded here.
max_error_line_width.m:056: Warning: the variable `L' is unified with a term containing itself.
max_error_line_width.m:059: In clause for predicate `ambig_overload2'/1:
max_error_line_width.m:059: warning: highly ambiguous overloading.
max_error_line_width.m:059: This may cause type-checking to be very slow. It may also make your code difficult to
max_error_line_width.m:059: understand.
max_error_line_width.m:059: The following symbols were overloaded in the following contexts.
max_error_line_width.m:059: The function symbol `a1'/0.
max_error_line_width.m:059: The possible matches are:
max_error_line_width.m:059: the type constructor `max_error_line_width.baz'/0,
max_error_line_width.m:059: the type constructor `max_error_line_width.qux'/0.
max_error_line_width.m:059: The function symbol `a2'/0.
max_error_line_width.m:059: The possible matches are:
max_error_line_width.m:059: the type constructor `max_error_line_width.baz'/0,
max_error_line_width.m:059: the type constructor `max_error_line_width.qux'/0.
max_error_line_width.m:113: In clause for predicate `test_lt'/1:
max_error_line_width.m:113: error: excessively ambiguous overloading.
max_error_line_width.m:113: This caused the type checker to exceed its limits. It may also make your code difficult to
max_error_line_width.m:113: understand.
max_error_line_width.m:113: The following symbol was overloaded in the following contexts.
max_error_line_width.m:064: The function symbol `unchecked_left_shift'/2.
max_error_line_width.m:064: The possible matches are:
max_error_line_width.m:064: function `int.unchecked_left_shift'/2,
max_error_line_width.m:064: function `uint.unchecked_left_shift'/2.
max_error_line_width.m:065: The function symbol `unchecked_left_shift'/2 is also overloaded here.
max_error_line_width.m:066: The function symbol `unchecked_left_shift'/2 is also overloaded here.
max_error_line_width.m:067: The function symbol `unchecked_left_shift'/2 is also overloaded here.
max_error_line_width.m:068: The function symbol `unchecked_left_shift'/2 is also overloaded here.
max_error_line_width.m:069: The function symbol `unchecked_left_shift'/2 is also overloaded here.
max_error_line_width.m:070: The function symbol `unchecked_left_shift'/2 is also overloaded here.
max_error_line_width.m:071: The function symbol `unchecked_left_shift'/2 is also overloaded here.
max_error_line_width.m:072: The function symbol `unchecked_left_shift'/2 is also overloaded here.
max_error_line_width.m:073: The function symbol `unchecked_left_shift'/2 is also overloaded here.
max_error_line_width.m:074: The function symbol `unchecked_left_shift'/2 is also overloaded here.
max_error_line_width.m:075: The function symbol `unchecked_left_shift'/2 is also overloaded here.
max_error_line_width.m:123: In clause for predicate `set_browser_param_from_option_table'/3:
max_error_line_width.m:123: warning: highly ambiguous overloading.
max_error_line_width.m:123: This may cause type-checking to be very slow. It may also make your code difficult to
max_error_line_width.m:123: understand.
max_error_line_width.m:123: The following symbol was overloaded in the following contexts.
max_error_line_width.m:118: The function symbol `lookup_bool_option'/2.
max_error_line_width.m:118: The possible matches are:
max_error_line_width.m:118: predicate `getopt.lookup_bool_option'/3,
max_error_line_width.m:118: function `getopt.lookup_bool_option'/2.
max_error_line_width.m:119: The function symbol `lookup_bool_option'/2 is also overloaded here.
max_error_line_width.m:120: The function symbol `lookup_bool_option'/2 is also overloaded here.
max_error_line_width.m:121: The function symbol `lookup_bool_option'/2 is also overloaded here.
max_error_line_width.m:122: The function symbol `lookup_bool_option'/2 is also overloaded here.
max_error_line_width.m:123: The function symbol `lookup_bool_option'/2 is also overloaded here.