Files
mercury/tests/valid
Peter Wang 7de681e615 Fix aborts when checking coercions.
Fix some aborts that could happen while type- or modechecking type
conversion expressions.

compiler/typecheck_coerce.m:
    When building the set of invariant type parameters, handle a
    constructor argument that has a type which is an (unexpanded)
    equivalence type.

    This fixes GitHub issue #137.

compiler/modecheck_coerce.m:
    In modecheck_coerce_from_ground_make_inst_for_subtype,
    handle a non-du or tuple type instead of aborting.

    In get_ctor_arg_types_do_subst, handle a tuple type
    instead of failing (leading to an abort).

tests/invalid/Mmakefile:
tests/invalid/coerce_typecheck_eqv.err_exp:
tests/invalid/coerce_typecheck_eqv.m:
tests/invalid/coerce_typecheck_eqv_helper_1.m:
    Add test case.

tests/valid/Mmakefile:
tests/valid/coerce_modecheck_eqv.err_exp:
tests/valid/coerce_modecheck_eqv.m:
tests/valid/coerce_modecheck_eqv_helper_1.m:
    Add test case.

tests/valid/gh137.m:
tests/valid/gh137_helper_1.m:
    Delete original test case for GitHub issue #137,
    as it is subsumed by tests/invalid/coerce_typecheck_eqv.m

NEWS.md:
    Add news item for this, and previous changes.
2025-07-12 09:56:33 +10:00
..
2021-07-28 01:32:43 +10:00
2023-11-02 03:22:50 +11:00
2021-07-27 19:29:21 +10:00
2021-07-27 19:29:21 +10:00
2021-07-27 19:29:21 +10:00
2021-07-27 19:29:21 +10:00
2023-11-02 03:22:50 +11:00
2021-07-27 19:29:21 +10:00
2019-07-10 02:50:46 +02:00
2017-01-20 00:28:19 +11:00
2021-07-27 19:29:21 +10:00
2019-08-20 10:29:04 +10:00
2019-09-29 12:16:30 +10:00
2016-03-13 01:11:05 +11:00
2021-07-27 19:29:21 +10:00
2023-11-02 03:22:50 +11:00
2021-07-27 19:29:21 +10:00
2018-10-01 06:54:00 +10:00
2021-07-27 19:29:21 +10:00
2021-07-27 19:29:21 +10:00
2023-11-02 03:22:50 +11:00
2025-07-12 09:56:33 +10:00
2023-11-02 03:22:50 +11:00
2021-07-27 19:29:21 +10:00
2019-05-28 23:04:35 +02:00
2018-01-11 23:09:08 -05:00