mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-18 02:43:40 +00:00
Estimated hours taken: 0.5 Tests for module qualification of types, insts and modes. tests/invalid/undef_lambda_mode.m Check that programs with undefined modes in lambda expressions do not compile. tests/warnings/unused_import.m unused_import.exp Test the warning produced for unused interface imports. tests/hard_coded/ tim_qual1.m tim_qual1.exp tim_qual2.m tim_qual3.m Test module qualification of types, insts and modes.
12 lines
184 B
Mathematica
12 lines
184 B
Mathematica
:- module undef_lambda_mode.
|
|
|
|
:- interface.
|
|
|
|
:- pred test(pred(int)) is det.
|
|
:- mode test(pred(in) is semidet) is det.
|
|
|
|
:- implementation.
|
|
|
|
test(lambda([X::junk] is semidet, X = 1)).
|
|
|