diff options
Diffstat (limited to 'testsuite/tests/gadt/T15558.hs')
-rw-r--r-- | testsuite/tests/gadt/T15558.hs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/tests/gadt/T15558.hs b/testsuite/tests/gadt/T15558.hs new file mode 100644 index 0000000000..91dff3f956 --- /dev/null +++ b/testsuite/tests/gadt/T15558.hs @@ -0,0 +1,14 @@ +{-# LANGUAGE GADTs #-} +{-# LANGUAGE RankNTypes #-} +module T15558 where + +data T a where + MkT :: T Int + +data Foo a = MkFoo ((a ~ Bool) => ()) + +f :: T a -> Foo a +f MkT = MkFoo () + +-- g :: Foo Int +-- g = f MkT |