mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-18 02:43:40 +00:00
compiler/add_type.m:
Use tools added to error_util.m since add_type.m was first written
to use simpler code to construct error messages.
In one place, improve the wording of an error message.
tests/invalid/user_eq_dummy.err_exp:
Expect that updated wording.
10 lines
581 B
Plaintext
10 lines
581 B
Plaintext
user_eq_dummy.m:014: Error: the type `foo'/0 contains no information, and as
|
|
user_eq_dummy.m:014: such it is not allowed to have user-defined equality or
|
|
user_eq_dummy.m:014: comparison.
|
|
user_eq_dummy.m:014: Discriminated union types whose body consists of a
|
|
user_eq_dummy.m:014: single zero-arity constructor cannot have user-defined
|
|
user_eq_dummy.m:014: equality or comparison.
|
|
user_eq_dummy.m:018: Error: the type `bar'/0 contains no information, and as
|
|
user_eq_dummy.m:018: such it is not allowed to have user-defined equality or
|
|
user_eq_dummy.m:018: comparison.
|