mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-22 04:43:53 +00:00
compiler/parse_goal.m:
Add color to the diagnostics generated by this module.
In a few cases, improve the wording of the diagnostic.
tests/invalid/malformed_ite.err_exp:
tests/invalid/trace_goal_env.err_exp:
tests/invalid/try_bad_params.err_exp:
tests/warnings/unknown_warning.err_exp:
Expect updated diagnostics.
1.3 KiB
1.3 KiB
try_bad_params.m:019: Error: duplicate io parameter in try goal.
try_bad_params.m:028: Error: expected a term of the form `io(!IO)' as try goal
try_bad_params.m:028: parameter, got `bloop'.
try_bad_params.m:037: In clause for predicate `main_3'/2:
try_bad_params.m:037: in initial I/O state variable of try goal:
try_bad_params.m:037: type error: variable `STATE_VARIABLE_Int_0' has type
try_bad_params.m:037: int;
try_bad_params.m:037: expected type was
try_bad_params.m:037: io.state.
try_bad_params.m:037: In clause for predicate `main_3'/2:
try_bad_params.m:037: in final I/O state variable of try goal:
try_bad_params.m:037: type error: variable `STATE_VARIABLE_Int' has type
try_bad_params.m:037: int;
try_bad_params.m:037: expected type was
try_bad_params.m:037: io.state.
try_bad_params.m:046: Error: expected a state variable as the argument of `io',
try_bad_params.m:046: got `IO'.
try_bad_params.m:055: Error: io should have one argument, which should be a
try_bad_params.m:055: state variable name.
For more information, recompile with `-E'.
try_bad_params.m:028: Error: expected a term of the form `io(!IO)' as try goal
try_bad_params.m:028: parameter, got `bloop'.
try_bad_params.m:037: In clause for predicate `main_3'/2:
try_bad_params.m:037: in initial I/O state variable of try goal:
try_bad_params.m:037: type error: variable `STATE_VARIABLE_Int_0' has type
try_bad_params.m:037: int;
try_bad_params.m:037: expected type was
try_bad_params.m:037: io.state.
try_bad_params.m:037: In clause for predicate `main_3'/2:
try_bad_params.m:037: in final I/O state variable of try goal:
try_bad_params.m:037: type error: variable `STATE_VARIABLE_Int' has type
try_bad_params.m:037: int;
try_bad_params.m:037: expected type was
try_bad_params.m:037: io.state.
try_bad_params.m:046: Error: expected a state variable as the argument of `io',
try_bad_params.m:046: got `IO'.
try_bad_params.m:055: Error: io should have one argument, which should be a
try_bad_params.m:055: state variable name.
For more information, recompile with `-E'.