mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-25 14:24:11 +00:00
compiler/make_hlds_error.m:
When generating a message about a duplicate definition, do not repeat
the entity's name in the "here is the previous definition" part
of the message.
tests/invalid/bug476.err_exp:
tests/invalid/user_field_access_decl_conflict.err_exp:
tests/invalid_nodepend/invalid_typeclass.err_exp:
Expect updated diagnostics.
7 lines
510 B
Plaintext
7 lines
510 B
Plaintext
bug476.m:059: In instance declaration for `input_stream(jinput_stream)':
|
||
bug476.m:059: error: the type class [38;5;203mhas no predicate method[39;49m named [38;5;87m`mark'/4.[39;49m
|
||
bug476.m:068: Error: the predicate [38;5;87m`bug476.mark'/4[39;49m is [38;5;203mmultiply defined.[39;49m
|
||
bug476.m:034: Here is its previous definition.
|
||
bug476.m:070: Error: clause for predicate [38;5;87m`input_stream_mark'/3[39;49m [38;5;203mwithout[39;49m a
|
||
bug476.m:070: corresponding `:- pred' declaration.
|