Files
mercury/tests/invalid/user_eq_dummy.err_exp
Zoltan Somogyi 9d97d41323 Simplify code constructing error messages.
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.
2021-04-01 08:32:17 +11:00

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.