Files
mercury/tests/invalid
Zoltan Somogyi 748a22a882 Improve diagnostics for bad instance declarations.
compiler/check_typeclass.m:
    When a type in an instance declaration is not a type constructor,
    don't just say what it is; say also what it should be.

    When a type in an instance declaration is a type constructor but some
    of its arguments are not type variables, don't just say so: say *which*
    of their arguments are the problem.

    Do not use "argument" to refer to both "the arguments of the instance
    declaration" and the "arguments of a type constructor"; use the terminology
    "instance type" for the former.

    Always end the line after the ":" in the error's top level description.

    Omit the module qualification of the typeclass name in error messages,
    since the base name of the typeclass, and the context, should always
    be enough to eliminate any ambiguity.

    Fix a bug in the use of choose_number.

    Don't gather the set of seen types, since it was never used.

tests/invalid/invalid_instance_declarations.m:
    Extend this test to type classes with more than one type.

tests/invalid/bad_instance2.err_exp:
tests/invalid/constraint_proof_bug_lib.err_exp:
tests/invalid/fundeps_coverage.err_exp:
tests/invalid/instance_var_bug.err_exp:
tests/invalid/invalid_instance_declarations.err_exp:
tests/invalid/range_restrict.err_exp:
tests/invalid/tc_err1.err_exp:
tests/invalid/tc_err2.err_exp:
tests/invalid/typeclass_bogus_method.err_exp:
tests/invalid/typeclass_missing_mode_2.err_exp:
tests/invalid/typeclass_test_10.err_exp:
tests/invalid/typeclass_test_3.err_exp:
tests/invalid/typeclass_test_4.err_exp:
tests/invalid/typeclass_test_5.err_exp:
tests/invalid/typeclass_test_9.err_exp:
    Update these expected outputs to account for the changes above.
2018-06-27 19:57:03 +02:00
..
2015-11-29 16:06:35 +11:00
2015-11-30 16:50:06 +11:00
2015-11-30 16:50:06 +11:00
2015-10-31 19:05:49 +11:00
2017-05-03 09:45:17 +10:00
2015-12-02 23:09:03 +11:00
2016-03-13 01:11:05 +11:00
2017-05-03 09:45:17 +10:00
2017-05-03 09:45:17 +10:00
2017-05-03 09:45:17 +10:00
2017-05-03 09:45:17 +10:00
2017-01-29 14:38:26 +11:00
2017-01-29 14:38:26 +11:00
2017-01-29 14:38:26 +11:00
2016-04-03 22:48:56 +10:00
2018-02-04 07:32:21 -05:00
2016-03-13 01:11:05 +11:00
2016-03-13 01:11:05 +11:00