mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 09:23:44 +00:00
compiler/mode_errors.m:
Use color more sparingly, to preserve the impact of when we *do* use it.
Improve the wording of some diagnostics. In one case, include
more information in a diagnostic.
Add some XXXs about possible further improvements.
compiler/make_hlds_warn.m:
Use color more sparingly, to preserve the impact of when we *do* use it.
compiler/error_spec.m:
Add two utility functions for use by new code in mode_errors.m.
compiler/modecheck_call.m:
Supply the extra detail now expected by mode_errors.m.
tests/invalid/any_mode.err_exp:
tests/invalid/any_passed_as_ground.err_exp:
tests/invalid/any_should_not_match_bound.err_exp:
tests/invalid/any_to_ground_in_ite_cond.err_exp:
tests/invalid/any_to_ground_in_ite_cond_nomax.err_exp:
tests/invalid/anys_in_negated_contexts.err_exp:
tests/invalid/bad_sv_unify_msg.err_exp:
tests/invalid/bind_in_negated.err_exp:
tests/invalid/bind_var_errors.err_exp:
tests/invalid/bug197.err_exp:
tests/invalid/bug278.err_exp:
tests/invalid/bug487.err_exp:
tests/invalid/char_inst.err_exp:
tests/invalid/coerce_clobbered.err_exp:
tests/invalid/coerce_disambig.err_exp:
tests/invalid/coerce_instvar.err_exp:
tests/invalid/coerce_int.err_exp:
tests/invalid/coerce_mode_error.err_exp:
tests/invalid/coerce_mode_error2.err_exp:
tests/invalid/coerce_recursive_inst.err_exp:
tests/invalid/coerce_recursive_type.err_exp:
tests/invalid/constrained_poly_insts2.err_exp:
tests/invalid/currying_multimode_func.err_exp:
tests/invalid/dcg_context.err_exp:
tests/invalid/default_ho_inst_1.err_exp:
tests/invalid/default_ho_inst_2.err_exp:
tests/invalid/field_syntax_error.err_exp:
tests/invalid/freefree.err_exp:
tests/invalid/functor_ho_inst_bad_1.err_exp:
tests/invalid/functor_ho_inst_bad_2.err_exp:
tests/invalid/functor_ho_inst_bad_3.err_exp:
tests/invalid/ho_any_inst.err_exp:
tests/invalid/ho_default_func_1.err_exp:
tests/invalid/ho_default_func_2.err_exp:
tests/invalid/ho_default_func_3.err_exp:
tests/invalid/ho_type_mode_bug.err_exp:
tests/invalid/ho_unique_error.err_exp:
tests/invalid/invalid_integral_call_inst.err_exp:
tests/invalid/io_in_ite_cond.err_exp:
tests/invalid/merge_inst_error.err_exp:
tests/invalid/mode_inf.err_exp:
tests/invalid/modes_erroneous.err_exp:
tests/invalid/mostly_uniq1.err_exp:
tests/invalid/mostly_uniq2.err_exp:
tests/invalid/multimode_addr_problems.err_exp:
tests/invalid/multimode_dcg.err_exp:
tests/invalid/partial_implied_mode.err_exp:
tests/invalid/polymorphic_unification.err_exp:
tests/invalid/state_vars_test_1.err_exp:
tests/invalid/state_vars_test_2.err_exp:
tests/invalid/state_vars_test_5.err_exp:
tests/invalid/try_detism.err_exp:
tests/invalid/unify_mode_error.err_exp:
tests/invalid/uniq_modes.err_exp:
tests/invalid/uniq_neg.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/occurs.err_exp:
tests/invalid_purity/impure_func_t5_fixed.err_exp:
tests/invalid_purity/purity.err_exp:
tests/warnings/double_underscore.err_exp:
tests/warnings/foreign_singleton.err_exp:
tests/warnings/missing_singleton_warning.err_exp:
tests/warnings/pragma_source_file.err_exp:
tests/warnings/singleton_test.err_exp:
tests/warnings/singleton_test_state_var.err_exp:
tests/warnings/unknown_warning.err_exp:
Expect updated diagnostics.
1.6 KiB
1.6 KiB
polymorphic_unification.m:023: In clause for `p(in, (list.list_skel >> dead))':
polymorphic_unification.m:023: in polymorphically-typed unification:
polymorphic_unification.m:023: mode error: variable `X' has instantiatedness
polymorphic_unification.m:023: named inst list.list_skel
polymorphic_unification.m:023: which expands to
polymorphic_unification.m:023: named inst list.list_skel(free)
polymorphic_unification.m:023: which expands to
polymorphic_unification.m:023: bound(
polymorphic_unification.m:023: []
polymorphic_unification.m:023: ;
polymorphic_unification.m:023: '[|]'(
polymorphic_unification.m:023: free,
polymorphic_unification.m:023: named inst list.list_skel(free)
polymorphic_unification.m:023: )
polymorphic_unification.m:023: ),
polymorphic_unification.m:023: expected instantiatedness was `ground' or
polymorphic_unification.m:023: `any'.
polymorphic_unification.m:023: When unifying two variables whose type will
polymorphic_unification.m:023: not be known until runtime, the variables must
polymorphic_unification.m:023: both be ground (or have inst `any').
polymorphic_unification.m:023: Unifications of polymorphically-typed
polymorphic_unification.m:023: variables with partially instantiated modes
polymorphic_unification.m:023: are not allowed.
polymorphic_unification.m:023: in polymorphically-typed unification:
polymorphic_unification.m:023: mode error: variable `X' has instantiatedness
polymorphic_unification.m:023: named inst list.list_skel
polymorphic_unification.m:023: which expands to
polymorphic_unification.m:023: named inst list.list_skel(free)
polymorphic_unification.m:023: which expands to
polymorphic_unification.m:023: bound(
polymorphic_unification.m:023: []
polymorphic_unification.m:023: ;
polymorphic_unification.m:023: '[|]'(
polymorphic_unification.m:023: free,
polymorphic_unification.m:023: named inst list.list_skel(free)
polymorphic_unification.m:023: )
polymorphic_unification.m:023: ),
polymorphic_unification.m:023: expected instantiatedness was `ground' or
polymorphic_unification.m:023: `any'.
polymorphic_unification.m:023: When unifying two variables whose type will
polymorphic_unification.m:023: not be known until runtime, the variables must
polymorphic_unification.m:023: both be ground (or have inst `any').
polymorphic_unification.m:023: Unifications of polymorphically-typed
polymorphic_unification.m:023: variables with partially instantiated modes
polymorphic_unification.m:023: are not allowed.