summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail185.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/tcfail185.hs')
-rw-r--r--testsuite/tests/typecheck/should_fail/tcfail185.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/tcfail185.hs b/testsuite/tests/typecheck/should_fail/tcfail185.hs
new file mode 100644
index 0000000000..59af50f738
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/tcfail185.hs
@@ -0,0 +1,13 @@
+-- See Trac #1606
+
+module ShouldFail where
+
+f :: Int -> Int -> Bool -> Bool -> Int -> Int
+f a b = \ x y -> let { y1 = y; y2 = y1; y3 = y2; y4 = y3; y5 = y4;
+ y6 = y5; y7 = y6 } in x
+
+
+
+
+
+