mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-20 11:54:02 +00:00
compiler/hlds_out_util.m:
As above. The first element of a list is element #1, not #0.
(Humans don't use C's array index conventions.)
tests/invalid/error_in_list.err_exp:
tests/invalid/functor_ho_inst_bad.err_exp:
tests/invalid/getopt_old.err_exp:
Expect the updated element numbers.
20 lines
872 B
Plaintext
20 lines
872 B
Plaintext
error_in_list.m:015: In clause for function `f'/0:
|
|
error_in_list.m:015: in function result term of clause head:
|
|
error_in_list.m:015: in list element #5:
|
|
error_in_list.m:015: type error in unification of argument
|
|
error_in_list.m:015: and constant `"five"'.
|
|
error_in_list.m:015: argument has type
|
|
error_in_list.m:015: int,
|
|
error_in_list.m:015: constant `"five"' has type
|
|
error_in_list.m:015: string.
|
|
error_in_list.m:015: In clause for function `f'/0:
|
|
error_in_list.m:015: in function result term of clause head:
|
|
error_in_list.m:015: in list element #7:
|
|
error_in_list.m:015: type error in unification of argument
|
|
error_in_list.m:015: and constant `7.0'.
|
|
error_in_list.m:015: argument has type
|
|
error_in_list.m:015: int,
|
|
error_in_list.m:015: constant `7.0' has type
|
|
error_in_list.m:015: float.
|
|
For more information, recompile with `-E'.
|