mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-20 03:43:51 +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.
510 B
510 B
bug476.m:059: In instance declaration for `input_stream(jinput_stream)':
bug476.m:059: error: the type class has no predicate method named `mark'/4.
bug476.m:068: Error: the predicate `bug476.mark'/4 is multiply defined.
bug476.m:034: Here is its previous definition.
bug476.m:070: Error: clause for predicate `input_stream_mark'/3 without a
bug476.m:070: corresponding `:- pred' declaration.
bug476.m:059: error: the type class has no predicate method named `mark'/4.
bug476.m:068: Error: the predicate `bug476.mark'/4 is multiply defined.
bug476.m:034: Here is its previous definition.
bug476.m:070: Error: clause for predicate `input_stream_mark'/3 without a
bug476.m:070: corresponding `:- pred' declaration.