mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-18 19:03:45 +00:00
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.
11 lines
465 B
Plaintext
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: ).
|