mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-17 18:33:58 +00:00
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.
7 lines
385 B
Plaintext
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.
|