mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-29 16:24:43 +00:00
compiler/parse_module.m:
When complaining about missing ":- interface"/":- implementation" markers,
reword the diagnostic to clarify that these should come after
the initial ":- module" declaration.
tests/invalid_make_int/missing_initial_section.int_err_exp:
tests/invalid_nodepend/bigtest.err_exp:
tests/invalid_nodepend/errors_1.err_exp:
tests/invalid_nodepend/errors_2.err_exp:
tests/invalid_nodepend/errors_3.err_exp:
tests/invalid_nodepend/funcs_as_preds.err_exp:
tests/invalid_nodepend/invalid_main.err_exp:
tests/invalid_nodepend/no_exports.err_exp:
tests/invalid_nodepend/occurs.err_exp:
tests/invalid_nodepend/prog_io_erroneous.err_exp:
tests/invalid_nodepend/types.err_exp:
tests/invalid_nodepend/vars_in_wrong_places.err_exp:
Expect the updated wording.
54 lines
4.1 KiB
Plaintext
54 lines
4.1 KiB
Plaintext
errors_3.m:012: Error: [38;5;203mmodule must start with a `:- module' declaration.[39;49m
|
||
errors_3.m:012: Error: the contents of module `errors_3' after the `:- module'
|
||
errors_3.m:012: declaration [38;5;203mshould start with[39;49m either an [38;5;40m`:- interface'[39;49m
|
||
errors_3.m:012: [38;5;40mdeclaration[39;49m or an [38;5;40m`:- implementation' declaration.[39;49m
|
||
errors_3.m:012: The following assumes that the missing declaration is an
|
||
errors_3.m:012: `:- implementation' declaration.
|
||
errors_3.m:012: Warning: the interface of module [38;5;87m`errors_3'[39;49m [38;5;203mdoes not export[39;49m
|
||
errors_3.m:012: [38;5;203manything.[39;49m
|
||
errors_3.m:030: Error: `:- mode' declaration for predicate
|
||
errors_3.m:030: [38;5;87m`mode_declaration_without_pred_declaration'/0[39;49m [38;5;203mwithout[39;49m a
|
||
errors_3.m:030: corresponding `:- pred' declaration.
|
||
errors_3.m:034: Error: `:- mode' declaration for predicate
|
||
errors_3.m:034: [38;5;87m`missing_pred_declaration'/0[39;49m [38;5;203mwithout[39;49m a corresponding
|
||
errors_3.m:034: `:- pred' declaration.
|
||
errors_3.m:040: Error: clause for predicate
|
||
errors_3.m:040: [38;5;87m`clause_without_pred_or_mode_declaration'/0[39;49m [38;5;203mwithout[39;49m a
|
||
errors_3.m:040: corresponding `:- pred' declaration.
|
||
errors_3.m:053: Error: the function symbol [38;5;87m`a'/0[39;49m [38;5;203moccurs more than once[39;49m in the
|
||
errors_3.m:053: definition of type constructor
|
||
errors_3.m:053: [38;5;87m`type_with_multiply_defined_ctors'/0.[39;49m
|
||
errors_3.m:055: Error: the function symbol [38;5;87m`f'/1[39;49m [38;5;203moccurs more than once[39;49m in the
|
||
errors_3.m:055: definition of type constructor
|
||
errors_3.m:055: [38;5;87m`type_with_multiply_defined_ctors'/0.[39;49m
|
||
errors_3.m:058: In the first argument of function symbol `f' of the type
|
||
errors_3.m:058: `du_type_which_references_undefined_type'/0:
|
||
errors_3.m:058: error: the type [38;5;87m`undefined_type'/0[39;49m is [38;5;203mundefined.[39;49m
|
||
errors_3.m:060: In definition of type
|
||
errors_3.m:060: `eqv_type_which_references_undefined_type'/0:
|
||
errors_3.m:060: error: the type [38;5;87m`undefined_type'/0[39;49m is [38;5;203mundefined.[39;49m
|
||
errors_3.m:062: Error: equivalence type [38;5;87m`errors_3.circular_eqv_type'/0[39;49m is
|
||
errors_3.m:062: [38;5;203mcircular.[39;49m
|
||
errors_3.m:064: Error: equivalence type
|
||
errors_3.m:064: [38;5;87m`errors_3.indirectly_circular_eqv_type_1'/0[39;49m is [38;5;203mcircular.[39;49m
|
||
errors_3.m:065: Error: equivalence type
|
||
errors_3.m:065: [38;5;87m`errors_3.indirectly_circular_eqv_type_2'/0[39;49m is [38;5;203mcircular.[39;49m
|
||
errors_3.m:068: Error: [38;5;87ma free type parameter such as [38;5;87m`T'[39;49m [38;5;203mmay not appear[39;49m on the
|
||
errors_3.m:068: right hand side of a type definition.
|
||
errors_3.m:070: Error: the [38;5;87mtype variable[39;49m [38;5;87m`T'[39;49m occurs [38;5;203monly on the right hand side[39;49m
|
||
errors_3.m:070: [38;5;203mof this type definition.[39;49m
|
||
errors_3.m:084: In clause for predicate `pred_with_unresolved_polymorphism'/0:
|
||
errors_3.m:084: warning: variable [38;5;87m`Arg'[39;49m [38;5;203moccurs only once[39;49m in this scope.
|
||
errors_3.m:100: In clause for predicate `pred_with_singleton_vars'/1:
|
||
errors_3.m:100: warning: variable [38;5;87m`X'[39;49m [38;5;203moccurs only once[39;49m in this scope.
|
||
errors_3.m:106: Warning: this `:- use_module' declaration for module [38;5;87m`int'[39;49m in
|
||
errors_3.m:106: the implementation section is [38;5;203mredundant,[39;49m given the
|
||
errors_3.m:106: `:- import_module' declaration for the same module in the
|
||
errors_3.m:106: same section.
|
||
errors_3.m:104: The previous `:- import_module' declaration was here.
|
||
errors_3.m:109: In definition of type `needs_qualification'/0:
|
||
errors_3.m:109: error: the type [38;5;87m`state'/0[39;49m is [38;5;203mundefined.[39;49m
|
||
errors_3.m:109: (Only [38;5;226mfully module qualified names[39;49m may refer to the entities
|
||
errors_3.m:109: defined in module [38;5;87m`io'.[39;49m)
|
||
For more information, recompile with `-E'.
|