mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-19 07:45:09 +00:00
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.
29 lines
2.4 KiB
Plaintext
29 lines
2.4 KiB
Plaintext
overloading.m:050: In clause for predicate `overloading.p/4':
|
|
overloading.m:050: in unification of variable `OptInfo'
|
|
overloading.m:050: and term `opt_info(MustHaveOwnSlot, EverOnStack, CurIntervalId, V_22, Counter1, StartMap0, EndMap0, VarsMap0, SuccMap0)':
|
|
overloading.m:050: type error in argument(s) of functor `opt_info/9'.
|
|
overloading.m:050: variable `OptInfo' has type `(overloading.opt_info)',
|
|
overloading.m:050: functor `opt_info/9' has type
|
|
overloading.m:050: `opt_info((set.set((term.var((term.generic))))), (set.set((term.var((term.generic))))), (tree234.tree234((term.var((term.generic))), (tree234.tree234((overloading.goal_path), string)))), (overloading.interval_id), (counter.counter), (tree234.tree234((overloading.interval_id), (overloading.anchor))), (tree234.tree234((overloading.interval_id), (overloading.anchor))), (tree234.tree234((overloading.interval_id), (set.set((term.var((term.generic))))))), (tree234.tree234((overloading.interval_id), (list.list((overloading.interval_id)))))): (overloading.opt_info)',
|
|
overloading.m:050: variable `MustHaveOwnSlot' has type `(set.set((term.var((term.generic)))))',
|
|
overloading.m:050: variable `EverOnStack' has type `(set.set((term.var((term.generic)))))',
|
|
overloading.m:050: variable `CurIntervalId' has type `(overloading.interval_id)',
|
|
overloading.m:050: argument has type `'<any>'',
|
|
overloading.m:050: variable `Counter1' has type `(counter.counter)',
|
|
overloading.m:050: variable `StartMap0' has overloaded type {
|
|
overloading.m:050: (pred (tree234.tree234(V_V_1, V_V_2))),
|
|
overloading.m:050: (tree234.tree234(K, V))
|
|
overloading.m:050: },
|
|
overloading.m:050: variable `EndMap0' has overloaded type {
|
|
overloading.m:050: (pred (tree234.tree234((overloading.interval_id), (overloading.anchor)))),
|
|
overloading.m:050: (tree234.tree234((overloading.interval_id), (overloading.anchor)))
|
|
overloading.m:050: },
|
|
overloading.m:050: variable `VarsMap0' has overloaded type {
|
|
overloading.m:050: (pred (tree234.tree234((overloading.interval_id), (set.set((term.var((term.generic)))))))),
|
|
overloading.m:050: (tree234.tree234((overloading.interval_id), (set.set((term.var((term.generic)))))))
|
|
overloading.m:050: },
|
|
overloading.m:050: variable `SuccMap0' has overloaded type {
|
|
overloading.m:050: (pred (tree234.tree234(V_V_1, V_V_2))),
|
|
overloading.m:050: (tree234.tree234(K, V))
|
|
overloading.m:050: }.
|