summaryrefslogtreecommitdiff
path: root/testsuite/tests/rep-poly/T17360.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/rep-poly/T17360.hs')
-rw-r--r--testsuite/tests/rep-poly/T17360.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/rep-poly/T17360.hs b/testsuite/tests/rep-poly/T17360.hs
new file mode 100644
index 0000000000..fc82675271
--- /dev/null
+++ b/testsuite/tests/rep-poly/T17360.hs
@@ -0,0 +1,11 @@
+{-# LANGUAGE UnliftedNewtypes #-}
+{-# LANGUAGE ExplicitForAll #-}
+{-# LANGUAGE PolyKinds #-}
+module T17360 where
+
+import GHC.Exts
+
+newtype Id (a :: TYPE r) = Id a
+
+foo :: forall r (a :: TYPE r). Id a -> Id a
+foo x = x