summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_compile/tc122.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typecheck/should_compile/tc122.hs')
-rw-r--r--testsuite/tests/typecheck/should_compile/tc122.hs18
1 files changed, 18 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_compile/tc122.hs b/testsuite/tests/typecheck/should_compile/tc122.hs
new file mode 100644
index 0000000000..71315f20c8
--- /dev/null
+++ b/testsuite/tests/typecheck/should_compile/tc122.hs
@@ -0,0 +1,18 @@
+{-# LANGUAGE ImplicitParams #-}
+
+-- !!! Implicit Parameters
+
+-- GHC 5.00 doesn't handle this:
+
+-- Could not deduce `?wibble :: t' from the context ()
+-- Probable fix:
+-- Add `?wibble :: t' to the banding(s) for {y}
+-- Or add an instance declaration for `?wibble :: t'
+-- arising from use of implicit parameter `?wibble' at tc122.hs:18
+-- in the definition of function `y': wibble
+
+
+module ShouldCompile where
+
+x () = y
+ where y = ?wibble