mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-22 21:03:53 +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.
16 lines
865 B
Plaintext
16 lines
865 B
Plaintext
getopt_old.m:027: In clause for predicate `main'/2:
|
|
getopt_old.m:027: in argument 2 of call to predicate `io.format'/4:
|
|
getopt_old.m:027: in list element #1:
|
|
getopt_old.m:027: in unification of argument
|
|
getopt_old.m:027: and term `s(ErrorMsg)':
|
|
getopt_old.m:027: type error in argument of functor `s'/1.
|
|
getopt_old.m:027: Argument 1 (ErrorMsg) has type
|
|
getopt_old.m:027: getopt.option_error(getopt_old.option),
|
|
getopt_old.m:027: expected type was
|
|
getopt_old.m:027: string.
|
|
getopt_old.m:027: One possible reason for the error is that the signatures of
|
|
getopt_old.m:027: the option processing predicates in the `getopt' module
|
|
getopt_old.m:027: have changed recently. Errors are now returned in a
|
|
getopt_old.m:027: structured form, which can be converted to a string by
|
|
getopt_old.m:027: calling the `option_error_to_string' function.
|