Files
mercury/tests/invalid/foreign_singleton.err_exp2
Julien Fischer e069d16ab1 Do not display the For more information try recompiling with -E'' prompt
Estimated hours taken: 1.5
Branches: main

Do not display the `For more information try recompiling with `-E'' prompt
unless we really mean it, i.e. there is actually more information available.

XXX This change is incomplete for the mode_errors module because that
module requires more substantial changes to make this work - I'll do
that as a separate diff.

compiler/globals.m
	Add a new global (and access predicates) that keeps track of whether
	we have any verbose error information that could be displayed if we
	recompiled with `-E'.

compiler/mercury_compile.m
	Check the new global flag before prompting the user to recompile with
	`-E'.

compiler/mode_errors.m
	Add an XXX comment about needing to respect the extra error info flag
	properly.

compiler/accumulator.m
compiler/add_clause.m
compiler/add_pred.m
compiler/add_type.m
compiler/assertion.m
compiler/check_typeclass.m
compiler/det_report.m
compiler/magic_util.m
compiler/make_hlds_error.m
compiler/modes.m
compiler/module_qual.m
compiler/modules.m
compiler/post_typecheck.m
compiler/purity.m
compiler/stratify.m
compiler/typecheck_errors.m
	Set the new global flag when we come across an error
	for which we have a verbose error message.

tests/recompilation/*:
tests/invalid/*:
	Update expected error files.
2005-09-14 05:27:11 +00:00

13 lines
886 B
Plaintext

foreign_singleton.m:026: In clause for predicate `foreign_singleton.f/3':
foreign_singleton.m:026: warning: variable `X' occurs only once in this scope.
foreign_singleton.m:030: In clause for predicate `foreign_singleton.g/3':
foreign_singleton.m:030: warning: variable `X' occurs only once in this scope.
foreign_singleton.m:026: In clause for `f(out, di, uo)':
foreign_singleton.m:026: mode error: argument 1 did not get sufficiently instantiated.
foreign_singleton.m:026: Final instantiatedness of `X' was `free',
foreign_singleton.m:026: expected final instantiatedness was `ground'.
foreign_singleton.m:030: In clause for `g(out, di, uo)':
foreign_singleton.m:030: mode error: argument 1 did not get sufficiently instantiated.
foreign_singleton.m:030: Final instantiatedness of `X' was `free',
foreign_singleton.m:030: expected final instantiatedness was `ground'.