summaryrefslogtreecommitdiff
path: root/testsuite/tests/dependent/should_fail/T15308.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/dependent/should_fail/T15308.hs')
-rw-r--r--testsuite/tests/dependent/should_fail/T15308.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/dependent/should_fail/T15308.hs b/testsuite/tests/dependent/should_fail/T15308.hs
new file mode 100644
index 0000000000..b49fe1f75b
--- /dev/null
+++ b/testsuite/tests/dependent/should_fail/T15308.hs
@@ -0,0 +1,12 @@
+{-# LANGUAGE GADTs #-}
+{-# LANGUAGE ScopedTypeVariables #-}
+{-# LANGUAGE TypeInType #-}
+module T15308 where
+
+import Data.Kind
+
+data Foo (a :: Type) :: forall b. (a -> b -> Type) -> Type where
+ MkFoo :: Foo a f
+
+f :: Foo a f -> String
+f = show