Files
mercury/tests/invalid/any_mode.err_exp
Zoltan Somogyi 69ffc683b6 Don't allow solver types to be exported.
compiler/add_type.m:
    Generate an error message if a solver type is exported.

NEWS:
    Announce the enforcement of this old rule.

tests/invalid/any_mode.err_exp:
tests/invalid/foreign_solver_type.err_exp:
    Expect the new error message for exported solver types.

tests/valid/solver_type_bug.m:
    To keep this test case valid, don't export the solver type it defines.
2019-07-20 15:40:52 +02:00

8 lines
429 B
Plaintext

any_mode.m:009: Error: the definition (as opposed to the name) of a solver type
any_mode.m:009: such as `foo'/0 must not be exported from its defining
any_mode.m:009: module.
any_mode.m:020: In clause for `p((any >> ground))':
any_mode.m:020: in argument 1 of call to predicate `any_mode.q'/1:
any_mode.m:020: mode error: variable `X' has instantiatedness `any',
any_mode.m:020: expected instantiatedness was `ground'.