summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail130.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/tcfail130.hs')
-rw-r--r--testsuite/tests/typecheck/should_fail/tcfail130.hs16
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/tcfail130.hs b/testsuite/tests/typecheck/should_fail/tcfail130.hs
new file mode 100644
index 0000000000..96101b534a
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/tcfail130.hs
@@ -0,0 +1,16 @@
+{-# LANGUAGE ImplicitParams #-}
+
+-- The defn of foo should be rejected; it's monomorphic, but
+-- the implicit paramter escapes
+
+module Foo where
+
+baz = let ?x = 5 in print foo
+
+foo = woggle 3
+
+woggle :: (?x :: Int) => Int -> Int
+woggle y = ?x + y
+
+
+