diff options
Diffstat (limited to 'testsuite/tests/polykinds/T12668.hs')
-rw-r--r-- | testsuite/tests/polykinds/T12668.hs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/tests/polykinds/T12668.hs b/testsuite/tests/polykinds/T12668.hs new file mode 100644 index 0000000000..4640903cc5 --- /dev/null +++ b/testsuite/tests/polykinds/T12668.hs @@ -0,0 +1,15 @@ +{-# LANGUAGE TypeInType #-} +{-# LANGUAGE RankNTypes #-} + +module T12668 where + +import GHC.Exts + +data Some r = Some (TYPE r -> TYPE r) + +doSomething :: forall (r :: RuntimeRep). forall (a :: TYPE r). () + => Int -> (a -> Int) -> a -> a +doSomething n f = + case n of + 1 -> error "hello" + 3 -> error "hello" |