diff options
Diffstat (limited to 'testsuite/tests/th/T21920.hs')
-rw-r--r-- | testsuite/tests/th/T21920.hs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/th/T21920.hs b/testsuite/tests/th/T21920.hs new file mode 100644 index 0000000000..10d08e92bd --- /dev/null +++ b/testsuite/tests/th/T21920.hs @@ -0,0 +1,13 @@ +{-# LANGUAGE TemplateHaskell #-} +{-# OPTIONS_GHC -fdefer-type-errors #-} +module Main where + +import Language.Haskell.TH.Syntax + +p :: Bool +p = $(const [| True |] ('a' + 'a')) + +q :: Bool +q = $$(const [|| True ||] ('a' + 'a')) + +main = print (p, q) |