summaryrefslogtreecommitdiff
path: root/testsuite/compiler
diff options
context:
space:
mode:
authorkrasimir <krasimir@chalmers.se>2010-02-01 09:18:42 +0000
committerkrasimir <krasimir@chalmers.se>2010-02-01 09:18:42 +0000
commit563e65c30949d415dd6124c9b188256c328a461a (patch)
tree850bc64c135b169ddde6c97bd64e42669385498a /testsuite/compiler
parent1cd4a500f5f6b4802d3288734ea1e6144f0be770 (diff)
test case for let expression in def rule
Diffstat (limited to 'testsuite/compiler')
-rw-r--r--testsuite/compiler/typecheck/abstract/LetInDefAbs.gf7
-rw-r--r--testsuite/compiler/typecheck/abstract/LetInDefAbs.gfs2
2 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/compiler/typecheck/abstract/LetInDefAbs.gf b/testsuite/compiler/typecheck/abstract/LetInDefAbs.gf
new file mode 100644
index 000000000..2473fd8ae
--- /dev/null
+++ b/testsuite/compiler/typecheck/abstract/LetInDefAbs.gf
@@ -0,0 +1,7 @@
+abstract LetInDefAbs = {
+
+fun f : Int -> Int ;
+def f n = let z = f 0
+ in f z ;
+
+} \ No newline at end of file
diff --git a/testsuite/compiler/typecheck/abstract/LetInDefAbs.gfs b/testsuite/compiler/typecheck/abstract/LetInDefAbs.gfs
new file mode 100644
index 000000000..570eeb232
--- /dev/null
+++ b/testsuite/compiler/typecheck/abstract/LetInDefAbs.gfs
@@ -0,0 +1,2 @@
+i -src testsuite/compiler/typecheck/abstract/LetInDefAbs.gf
+ai f \ No newline at end of file