Files
mercury/tests/invalid/errors1.err_exp
Zoltan Somogyi 10c8d88223 Convert this module to our current coding style.
Estimated hours taken: 6
Branches: main

compiler/module_qual.m:
	Convert this module to our current coding style. Use state variables
	where appropriate. Reorder arguments as required to allow the use of
	state variables. Use error_util instead of io__write_string to print
	error messages. Use predmode declarations where possible. Use . as
	the module name separator.

	There are no algorithmic changes except for the use of error_util.

compiler/middle_rec.m:
	Convert this module to our current coding style. Use predmode
	declarations where possible.

compiler/make_hlds.m:
compiler/mercury_compile.m:
	Conform to changed argument orders of predicates in module_qual.m.

compiler/error_util.m:
	Add a new version of the utility predicate that puts commas and "and"s
	between elements of a list.

	Fix an old bug: when printing a symname/arity pair, put quotes around
	only the symname part.

tests/invalid/*.err_exp:
tests/invalid/purity/*.err_exp:
tests/recompilation/*.err_exp.2:
tests/warning/*.exp:
	Update the expected error messages to reflect the better wrapping we
	get from error_util, and in some cases to reflect the fixed code for
	quotes around symnames.
2005-03-20 02:24:48 +00:00

28 lines
1.8 KiB
Plaintext

errors1.m:001: Warning: interface for module `errors1' does not export
errors1.m:001: anything.
errors1.m:051: In definition of type `errors1.du_type_which_references_undefined_type'/0:
errors1.m:051: error: undefined type `undefined_type'/0.
errors1.m:053: In definition of type `errors1.eqv_type_which_references_undefined_type'/0:
errors1.m:053: error: undefined type `undefined_type'/0.
errors1.m:055: Error: circular equivalence type `errors1.circular_eqv_type/0'.
errors1.m:057: Error: circular equivalence type
errors1.m:057: `errors1.indirectly_circular_eqv_type_1/0'.
errors1.m:058: Error: circular equivalence type
errors1.m:058: `errors1.indirectly_circular_eqv_type_2/0'.
errors1.m:028: Error: mode declaration for predicate
errors1.m:028: `errors1.mode_declaration_without_pred_declaration/0'
errors1.m:028: without preceding `pred' declaration.
errors1.m:032: Error: mode declaration for predicate
errors1.m:032: `errors1.missing_pred_declaration/0'
errors1.m:032: without preceding `pred' declaration.
errors1.m:049: Error: constructor `errors1.a/0' for type `errors1.type_with_multiply_defined_ctors/0' multiply defined.
errors1.m:049: Error: constructor `errors1.f/1' for type `errors1.type_with_multiply_defined_ctors/0' multiply defined.
errors1.m:038: Error: clause for predicate
errors1.m:038: `errors1.clause_without_pred_or_mode_declaration/0'
errors1.m:038: without preceding `pred' declaration.
errors1.m:072: In clause for predicate `errors1.pred_with_unresolved_polymorphism/0':
errors1.m:072: warning: variable `Arg' occurs only once in this scope.
errors1.m:088: In clause for predicate `errors1.pred_with_singleton_vars/1':
errors1.m:088: warning: variable `X' occurs only once in this scope.
For more information, try recompiling with `-E'.