Files
mercury/tests/warnings/unused_interface_import.exp
Zoltan Somogyi 82d3141334 Fix the context of unused import_module error messages.
compiler/module_qual.m:
    When printing error messages about modules imported in the interface
    but not used in the interface, we used to use the context of the module's
    `:- module' declaration, not the context of the bad `:- import_module'
    declarations themselves. Fix that, by generating a separate error message
    for each unnecessarily interface-imported module, each with its own
    context.

tests/invalid/bug113.err_exp:
tests/warning/unused_import.exp:
tests/warning/unused_interface_import.exp:
    Update the context (and the wording) of the expected error message.
2015-08-12 22:14:37 +10:00

5 lines
277 B
Plaintext

unused_interface_import.m:009: In module `unused_interface_import':
unused_interface_import.m:009: warning: module `unused_interface_import2' is
unused_interface_import.m:009: imported in the interface, but it is not used
unused_interface_import.m:009: in the interface.