Files
mercury/tests/invalid/ho_default_func_4.err_exp
Zoltan Somogyi c53f9ab46e Don't output lines that end with a space.
compiler/write_error_spec.m:
    When error_specs include blank lines, we used to output lines
    of the form "filename:linenumber: ". Stop generating the final space.

compiler/parse_tree_out_misc.m:
    Add a new version of an existing function.

tests/invalid/actual_more_expected.err_exp:
tests/invalid/ambiguous_overloading_error.err_exp:
tests/invalid/any_passed_as_ground.err_exp:
tests/invalid/anys_in_negated_contexts.err_exp:
tests/invalid/bad_ambiguity_msg.err_exp:
tests/invalid/bug150.err_exp:
tests/invalid/bug150_partial_color.err_exp:
tests/invalid/bug496.err_exp:
tests/invalid/det_atomic_goal_msgs.err_exp:
tests/invalid/det_errors.err_exp:
tests/invalid/det_errors_and_io.err_exp:
tests/invalid/det_errors_deep.err_exp:
tests/invalid/ho_default_func_1.err_exp:
tests/invalid/ho_default_func_3.err_exp:
tests/invalid/ho_default_func_4.err_exp:
tests/invalid/ho_type_mode_bug.err_exp:
tests/invalid/magicbox.err_exp:
tests/invalid/max_error_line_width.err_exp:
tests/invalid/mode_inf.err_exp:
tests/invalid/modes_erroneous.err_exp:
tests/invalid/no_ho_inst.err_exp:
tests/invalid/not_a_switch.err_exp:
tests/invalid/state_vars_test_1.err_exp:
tests/invalid/try_detism.err_exp:
tests/invalid/user_field_access_decl_override_1.err_exp:
tests/invalid_nodepend/errors_2.err_exp:
tests/warnings/ambiguous_overloading.err_exp:
tests/warnings/inconsistent_pred_order.err_exp:
tests/warnings/subtype_order.err_exp:
tests/warnings/test_tscp.err_exp:
    Stop expecting a final space.
2025-09-15 06:28:07 +10:00

1.8 KiB

ho_default_func_4.m:039: In clause for `baz(in, out)':
ho_default_func_4.m:039: in call to function `univ.univ'/1:
ho_default_func_4.m:039: mode error: the insts of argument `V_7' and the
ho_default_func_4.m:039: return value `V_6' do not match any of the three
ho_default_func_4.m:039: modes for function `univ.univ'/1.
ho_default_func_4.m:039:
ho_default_func_4.m:039: The inst of the first argument, `V_7', which is
ho_default_func_4.m:039: /* unique */ (func(
ho_default_func_4.m:039: in(named inst one
ho_default_func_4.m:039: which expands to
ho_default_func_4.m:039: bound(
ho_default_func_4.m:039: 1
ho_default_func_4.m:039: )
ho_default_func_4.m:039: )
ho_default_func_4.m:039: ) = out is det),
ho_default_func_4.m:039: does not match the inst required by some of the
ho_default_func_4.m:039: modes of the callee, namely the first and second
ho_default_func_4.m:039: modes.
ho_default_func_4.m:039: (For higher order insts like this, the mismatch is
ho_default_func_4.m:039: sometimes caused by the arity of the predicate or
ho_default_func_4.m:039: function being different in the inst than in the
ho_default_func_4.m:039: type.)
ho_default_func_4.m:039:
ho_default_func_4.m:039: The inst of the return value `V_6', which is
ho_default_func_4.m:039: `free', does not match the inst required by some
ho_default_func_4.m:039: of the modes of the callee, namely the third mode.
For more information, recompile with `-E'.