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

11 lines
465 B
Plaintext

bug117.m:028: In clause for `extract(in) = out((list.non_empty_list))':
bug117.m:028: mode error: the function result did not get sufficiently
bug117.m:028: instantiated.
bug117.m:028: Final instantiatedness of `X' was `ground',
bug117.m:028: expected final instantiatedness was
bug117.m:028: named inst list.non_empty_list
bug117.m:028: which expands to
bug117.m:028: bound(
bug117.m:028: '[|]'(ground, ground)
bug117.m:028: ).