mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-23 05:13:48 +00:00
compiler/typecheck_error_undef.m:
Suggest possible "did you mean" names when reporting references
to undefined functions, not just undefined predicates.
Generalize the infrastructure used for predicate name suggestions
to work for function name suggestions as well.
Delete the code moved to error_spec.m.
compiler/module_qual.qual_errors.m:
When reporting an undefined entity name that has way to become defined
without changing its name, suggest possible names.
compiler/error_spec.m:
Move the code for constructing "did you mean" suggestions here from
typecheck_error_undef.m, to make it accessible from
module_qual.qual_errors.m as well.
compiler/hlds_cons.m:
Add a way to retrieve the names of all the function symbols,
for use by the new code in typecheck_error_undef.m.
compiler/module_qual.id_set.m:
Add a way to retrieve the names of all the ids in an id_set,
for use by the new code in module_qual.qual_errors.m.
Expand a old comment.
tests/invalid/bug113.err_exp:
tests/invalid/multiply_star.err_exp:
tests/invalid/multiply_star.m:
tests/invalid_nodepend/kind.err_exp:
tests/invalid_nodepend/reserved_type_name.err_exp:
Expect the "did you mean" messages we now generate.
21 lines
1.0 KiB
Plaintext
21 lines
1.0 KiB
Plaintext
bug113.m:019: In module `bug113':
|
|
bug113.m:019: warning: module `list' is imported in the interface, but it is
|
|
bug113.m:019: not used in the interface.
|
|
bug113.m:032: Error: clause for function `new'/1
|
|
bug113.m:032: without corresponding `:- func' declaration.
|
|
bug113.m:032: Inferred :- func new(T1) = T2.
|
|
bug113.m:034: Error: clause for function `new'/2
|
|
bug113.m:034: without corresponding `:- func' declaration.
|
|
bug113.m:036: In clause for function `new'/2:
|
|
bug113.m:036: error: undefined symbol `throw_bitmap_error'/1.
|
|
bug113.m:036: (Did you mean `bitmap_error'?)
|
|
bug113.m:038: In clause for function `new'/2:
|
|
bug113.m:038: error: undefined symbol `initializer'/1.
|
|
bug113.m:039: In clause for function `new'/2:
|
|
bug113.m:039: error: undefined symbol `initialize_bitmap'/3.
|
|
bug113.m:039: In clause for function `new'/2:
|
|
bug113.m:039: in argument 1 of functor `initialize_bitmap/3':
|
|
bug113.m:039: error: undefined symbol `allocate_bitmap'/1.
|
|
bug113.m:040: In clause for function `new'/2:
|
|
bug113.m:040: error: undefined symbol `clear_filler_bits'/1.
|