Files
mercury/tests/invalid/inst_matches_final_bug.err_exp
Zoltan Somogyi 2028df3f20 Fix references to func results in a mode error.
compiler/mode_errors.m:
    If the argument whose instantiation we are complaining about is
    the result of a function, say so.

tests/invalid/mode_error_arg_number.{m,err_exp}:
    Add a test of this message.

tests/invalid/bug117.err_exp:
tests/invalid/coerce_int.err_exp:
tests/invalid/html.err_exp:
tests/invalid/inst_matches_final_bug.err_exp:
    Expect the correct reference to function results in these test cases.
2022-10-01 13:06:20 +10:00

7 lines
408 B
Plaintext

inst_matches_final_bug.m:023: In clause for `return_three = out(bound(3))':
inst_matches_final_bug.m:023: mode error: the function result did not get
inst_matches_final_bug.m:023: sufficiently instantiated.
inst_matches_final_bug.m:023: Final instantiatedness of `HeadVar__1' was
inst_matches_final_bug.m:023: `ground',
inst_matches_final_bug.m:023: expected final instantiatedness was `bound(3)'.