From 401dfc28d62584178c1187c92dece8dd0832dcb4 Mon Sep 17 00:00:00 2001 From: krasimir Date: Wed, 20 May 2009 20:27:19 +0000 Subject: some more tests for evaluation in the abstract syntax --- testsuite/paraphrase/lambda.gf | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 testsuite/paraphrase/lambda.gf (limited to 'testsuite/paraphrase/lambda.gf') diff --git a/testsuite/paraphrase/lambda.gf b/testsuite/paraphrase/lambda.gf new file mode 100644 index 000000000..3476866c9 --- /dev/null +++ b/testsuite/paraphrase/lambda.gf @@ -0,0 +1,17 @@ +abstract lambda = { + +fun f1 : Int -> Int ; +def f1 = (\x -> x) ; + +fun f2 : Int ; +def f2 = f1 1 ; + +cat D ; +data D1 : D ; + D2 : D ; + +fun d : D -> Int -> Int ; +def d D1 = \x -> x ; + d D2 = \x -> 2 ; + +} \ No newline at end of file -- cgit v1.2.3