Files
mercury/tests/invalid_nodepend/instance_bug.err_exp
Zoltan Somogyi 939c9cb063 Address Julien's review comments.
doc/reference_manual.texi:
    Give a reason why nonabstract instance declarations may not appear
    in interface sections. To make this reason understandable, delay it
    until we have discussed method definitions.

    Add an example of an abstract instance declaration with a typeclass
    constraint.

compiler/split_parse_tree_src.m:
    Improve the wording along lines suggested by Julien.

tests/invalid_nodepend/instance_bug.err_exp:
    Expect the updated wording.
2022-02-03 13:16:48 +11:00

7 lines
385 B
Plaintext

instance_bug.m:013: Error: non-abstract instance declaration in module
instance_bug.m:013: interface.
instance_bug.m:013: If you intend to export this instance, move this
instance_bug.m:013: declaration to the implementation section, replacing it
instance_bug.m:013: in the interface section with its abstract version, which
instance_bug.m:013: omits the `where [...]' part.