summaryrefslogtreecommitdiff
path: root/testsuite/tests/rep-poly/T18481a.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/rep-poly/T18481a.hs')
-rw-r--r--testsuite/tests/rep-poly/T18481a.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/rep-poly/T18481a.hs b/testsuite/tests/rep-poly/T18481a.hs
new file mode 100644
index 0000000000..b5b29a8af7
--- /dev/null
+++ b/testsuite/tests/rep-poly/T18481a.hs
@@ -0,0 +1,12 @@
+{-# LANGUAGE UnliftedDatatypes, PolyKinds, DataKinds, TypeApplications #-}
+
+module T18481a where
+
+import Data.Kind
+import GHC.Types( Levity(..), RuntimeRep(..), TYPE )
+
+type T :: TYPE (BoxedRep r) -> TYPE (BoxedRep r)
+data T a = MkT Int
+
+f :: T Bool
+f = MkT @Lifted @Bool 42