summaryrefslogtreecommitdiff
path: root/testsuite/tests/gadt/T19847b.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/gadt/T19847b.hs')
-rw-r--r--testsuite/tests/gadt/T19847b.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/gadt/T19847b.hs b/testsuite/tests/gadt/T19847b.hs
new file mode 100644
index 0000000000..b7dbe005d9
--- /dev/null
+++ b/testsuite/tests/gadt/T19847b.hs
@@ -0,0 +1,10 @@
+{-# LANGUAGE TypeAbstractions, GADTs #-}
+
+module T19847b where
+
+import Data.Kind
+
+data T (a :: Type) b where
+ MkT4 :: forall a b. b ~ a => T a b
+
+foo x = (case x of MkT4 @Bool -> ()) :: ()