mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-27 15:24:00 +00:00
Estimated hours taken: 3 Branches: main Deprecate old-style lambda expressions properly. compiler/make_hlds.m: Emit a warning if an old-style lambda expression is encountered. compiler/notes/todo.html: Remove this from the TODO list. compiler/base_typeclass_info.m: compiler/mercury_to_mercury.m: extras/odbc/odbc.m: tests/*/*.m: Replace old-style lambda expressions as necessary.
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((pred(X::junk) is semidet :- X = 1)).
|
|
|