diff options
Diffstat (limited to 'testsuite/tests/rep-poly/T19709b.hs')
-rw-r--r-- | testsuite/tests/rep-poly/T19709b.hs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/rep-poly/T19709b.hs b/testsuite/tests/rep-poly/T19709b.hs new file mode 100644 index 0000000000..629172a892 --- /dev/null +++ b/testsuite/tests/rep-poly/T19709b.hs @@ -0,0 +1,12 @@ +{-# LANGUAGE TemplateHaskell, ExplicitForAll, PolyKinds, TypeApplications #-} + +module T19709b where + +import GHC.Exts +import Language.Haskell.TH + +$( let levfun :: forall (r :: RuntimeRep) (a :: TYPE r). a -> () + levfun = error "e1" -- NB: this, so far, is OK: no representation-polymorphic binder + + in levfun (error @Any "e2") -- but this is very naughty: representation-polymorphic argument + `seq` return [] ) |