diff options
Diffstat (limited to 'testsuite/tests/polykinds/T19522.hs')
-rw-r--r-- | testsuite/tests/polykinds/T19522.hs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/polykinds/T19522.hs b/testsuite/tests/polykinds/T19522.hs new file mode 100644 index 0000000000..d7a7677a95 --- /dev/null +++ b/testsuite/tests/polykinds/T19522.hs @@ -0,0 +1,11 @@ +{-# LANGUAGE DataKinds #-} +{-# LANGUAGE MagicHash #-} +{-# LANGUAGE TypeApplications #-} +module Bug where + +import GHC.Exts +import Unsafe.Coerce + +f :: Int -> Int +f x = unsafeCoerce# @LiftedRep @LiftedRep @Int @Int x + |