summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_run/tcrun027.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typecheck/should_run/tcrun027.hs')
-rw-r--r--testsuite/tests/typecheck/should_run/tcrun027.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_run/tcrun027.hs b/testsuite/tests/typecheck/should_run/tcrun027.hs
new file mode 100644
index 0000000000..734d230394
--- /dev/null
+++ b/testsuite/tests/typecheck/should_run/tcrun027.hs
@@ -0,0 +1,12 @@
+{-# LANGUAGE ImplicitParams #-}
+
+-- Killed GHC 5.04.1
+
+module Main where
+
+type CTPar = ([Double],Int)
+
+us :: (?ctPar :: CTPar) => [Double]
+us = let (d,_) = ?ctPar in d
+
+main = let ?ctPar = ([3.4],2) in print us