Files
mercury/tests/invalid/try_bad_params.err_exp
Zoltan Somogyi 96d16e2dcd Use color in parse_goal.m.
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.
2024-05-15 08:33:35 +10:00

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'.