Files
mercury/tests/invalid_manual/gh118.err_exp
Zoltan Somogyi 40ff19acbb Standardize mode names in argument lists.
compiler/hlds_error_util.m:
    When converting lists of arguments mode to strings for error messages,
    replace from/to pairs of insts that stand for standard modes with the
    names of those standard modes.

compiler/prog_mode.m:
    Add a utility function for doing that standardization.

tests/invalid/io_in_ite_cond.err_exp:
tests/invalid_manual/gh118.err_exp:
    Expect the standard forms of modes.

tests/invalid_manual/Mmakefile:
    Specify the grade for the test independently of the grade of the
    workspace or of the last bootcheck. Make the Mercury compiler flags
    specific to the test.
2023-03-19 00:24:25 +11:00

7 lines
446 B
Plaintext

gh118.gh118_helper.int:005: In `gh118.gh118_helper.bar'(di, uo):
gh118.gh118_helper.int:005: error: `multi' is not a valid determinism for a
gh118.gh118_helper.int:005: predicate that has I/O state arguments. The valid
gh118.gh118_helper.int:005: determinisms for such predicates are `det',
gh118.gh118_helper.int:005: `cc_multi' and `erroneous', since the I/O state
gh118.gh118_helper.int:005: can be neither duplicated nor destroyed.