mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-23 13:23:47 +00:00
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.
8 lines
429 B
Plaintext
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'.
|