diff options
Diffstat (limited to 'testsuite/tests/dependent/should_fail/PromotedClass.hs')
-rw-r--r-- | testsuite/tests/dependent/should_fail/PromotedClass.hs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/dependent/should_fail/PromotedClass.hs b/testsuite/tests/dependent/should_fail/PromotedClass.hs new file mode 100644 index 0000000000..6c3f415e5d --- /dev/null +++ b/testsuite/tests/dependent/should_fail/PromotedClass.hs @@ -0,0 +1,11 @@ +{-# LANGUAGE TypeInType, GADTs #-} + +module PromotedClass where + +import Data.Proxy + +data X a where + MkX :: Show a => a -> X a + +foo :: Proxy ('MkX 'True) +foo = Proxy |