summaryrefslogtreecommitdiff
path: root/testsuite/tests/rep-poly/T14561b.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/rep-poly/T14561b.hs')
-rw-r--r--testsuite/tests/rep-poly/T14561b.hs14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/tests/rep-poly/T14561b.hs b/testsuite/tests/rep-poly/T14561b.hs
new file mode 100644
index 0000000000..cf36208b04
--- /dev/null
+++ b/testsuite/tests/rep-poly/T14561b.hs
@@ -0,0 +1,14 @@
+{-# LANGUAGE RankNTypes #-}
+{-# LANGUAGE DataKinds #-}
+{-# LANGUAGE PolyKinds #-}
+{-# LANGUAGE MagicHash #-}
+
+module T14561 where
+
+import Data.Coerce
+import GHC.Exts
+
+badId :: forall r (a :: TYPE r). a -> a
+badId = coerce
+-- Un-saturated application of a representation-polymorphic
+-- function that must be eta-expanded