mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 17:33:38 +00:00
compiler/add_type.m:
Improve the wording of a diagnostic.
compiler/parse_item.m:
Add color to a diagnostic.
compiler/parse_sym_name.m:
Include more info in a diagnostic.
compiler/parse_type_defn.m:
Don't color inessential words.
tests/invalid_make_int/test_type_spec_int.int_err_exp:
tests/invalid_nodepend/bad_include.err_exp:
tests/invalid_nodepend/errors_1.err_exp:
tests/invalid_nodepend/errors_3.err_exp:
tests/invalid_nodepend/subtype_syntax.err_exp:
tests/invalid_nodepend/types.err_exp:
tests/invalid_nodepend/var_as_class_name.err_exp:
tests/invalid_nodepend/var_as_pred_name.err_exp:
Expect updated diagnostics.
4.0 KiB
4.0 KiB
errors_3.m:012: Error: module must start with a `:- module' declaration.
errors_3.m:012: Error: module `errors_3' should start with either an
errors_3.m:012: `:- interface' declaration or an `:- implementation'
errors_3.m:012: declaration.
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 `errors_3' does not export
errors_3.m:012: anything.
errors_3.m:030: Error: `:- mode' declaration for predicate
errors_3.m:030: `mode_declaration_without_pred_declaration'/0 without a
errors_3.m:030: corresponding `:- pred' declaration.
errors_3.m:034: Error: `:- mode' declaration for predicate
errors_3.m:034: `missing_pred_declaration'/0 without a corresponding
errors_3.m:034: `:- pred' declaration.
errors_3.m:040: Error: clause for predicate
errors_3.m:040: `clause_without_pred_or_mode_declaration'/0 without a
errors_3.m:040: corresponding `:- pred' declaration.
errors_3.m:053: Error: the function symbol `a'/0 occurs more than once in the
errors_3.m:053: definition of type constructor
errors_3.m:053: `type_with_multiply_defined_ctors'/0.
errors_3.m:055: Error: the function symbol `f'/1 occurs more than once in the
errors_3.m:055: definition of type constructor
errors_3.m:055: `type_with_multiply_defined_ctors'/0.
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 `undefined_type'/0 is undefined.
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 `undefined_type'/0 is undefined.
errors_3.m:062: Error: equivalence type `errors_3.circular_eqv_type'/0 is
errors_3.m:062: circular.
errors_3.m:064: Error: equivalence type
errors_3.m:064: `errors_3.indirectly_circular_eqv_type_1'/0 is circular.
errors_3.m:065: Error: equivalence type
errors_3.m:065: `errors_3.indirectly_circular_eqv_type_2'/0 is circular.
errors_3.m:068: Error: a free type parameter such as `T' may not appear on the
errors_3.m:068: right hand side of a type definition.
errors_3.m:070: Error: the type variable `T' occurs only on the right hand side
errors_3.m:070: of this type definition.
errors_3.m:084: In clause for predicate `pred_with_unresolved_polymorphism'/0:
errors_3.m:084: warning: variable `Arg' occurs only once in this scope.
errors_3.m:100: In clause for predicate `pred_with_singleton_vars'/1:
errors_3.m:100: warning: variable `X' occurs only once in this scope.
errors_3.m:106: Warning: this `:- use_module' declaration for module `int' in
errors_3.m:106: the implementation section is redundant, 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 `state'/0 is undefined.
errors_3.m:109: (Only fully module qualified names may refer to the entities
errors_3.m:109: defined in module `io'.)
For more information, recompile with `-E'.
errors_3.m:012: Error: module `errors_3' should start with either an
errors_3.m:012: `:- interface' declaration or an `:- implementation'
errors_3.m:012: declaration.
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 `errors_3' does not export
errors_3.m:012: anything.
errors_3.m:030: Error: `:- mode' declaration for predicate
errors_3.m:030: `mode_declaration_without_pred_declaration'/0 without a
errors_3.m:030: corresponding `:- pred' declaration.
errors_3.m:034: Error: `:- mode' declaration for predicate
errors_3.m:034: `missing_pred_declaration'/0 without a corresponding
errors_3.m:034: `:- pred' declaration.
errors_3.m:040: Error: clause for predicate
errors_3.m:040: `clause_without_pred_or_mode_declaration'/0 without a
errors_3.m:040: corresponding `:- pred' declaration.
errors_3.m:053: Error: the function symbol `a'/0 occurs more than once in the
errors_3.m:053: definition of type constructor
errors_3.m:053: `type_with_multiply_defined_ctors'/0.
errors_3.m:055: Error: the function symbol `f'/1 occurs more than once in the
errors_3.m:055: definition of type constructor
errors_3.m:055: `type_with_multiply_defined_ctors'/0.
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 `undefined_type'/0 is undefined.
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 `undefined_type'/0 is undefined.
errors_3.m:062: Error: equivalence type `errors_3.circular_eqv_type'/0 is
errors_3.m:062: circular.
errors_3.m:064: Error: equivalence type
errors_3.m:064: `errors_3.indirectly_circular_eqv_type_1'/0 is circular.
errors_3.m:065: Error: equivalence type
errors_3.m:065: `errors_3.indirectly_circular_eqv_type_2'/0 is circular.
errors_3.m:068: Error: a free type parameter such as `T' may not appear on the
errors_3.m:068: right hand side of a type definition.
errors_3.m:070: Error: the type variable `T' occurs only on the right hand side
errors_3.m:070: of this type definition.
errors_3.m:084: In clause for predicate `pred_with_unresolved_polymorphism'/0:
errors_3.m:084: warning: variable `Arg' occurs only once in this scope.
errors_3.m:100: In clause for predicate `pred_with_singleton_vars'/1:
errors_3.m:100: warning: variable `X' occurs only once in this scope.
errors_3.m:106: Warning: this `:- use_module' declaration for module `int' in
errors_3.m:106: the implementation section is redundant, 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 `state'/0 is undefined.
errors_3.m:109: (Only fully module qualified names may refer to the entities
errors_3.m:109: defined in module `io'.)
For more information, recompile with `-E'.