summaryrefslogtreecommitdiff
path: root/testsuite/tests/impredicative/T18126-1.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/impredicative/T18126-1.hs')
-rw-r--r--testsuite/tests/impredicative/T18126-1.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/impredicative/T18126-1.hs b/testsuite/tests/impredicative/T18126-1.hs
new file mode 100644
index 0000000000..bbc3a6ec40
--- /dev/null
+++ b/testsuite/tests/impredicative/T18126-1.hs
@@ -0,0 +1,12 @@
+{-# LANGUAGE ImplicitParams, TypeApplications, ScopedTypeVariables, QuantifiedConstraints, ImpredicativeTypes #-}
+
+module Foo where
+
+import Control.Monad
+import GHC.Stack
+
+wcs :: (?callStack :: CallStack) => ( (?callStack :: CallStack) => a ) -> a
+wcs x = error "urk"
+
+info :: IO ()
+info = wcs $ (when True $ return ())