diff options
Diffstat (limited to 'testsuite/tests/th/T14875.hs')
-rw-r--r-- | testsuite/tests/th/T14875.hs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/tests/th/T14875.hs b/testsuite/tests/th/T14875.hs new file mode 100644 index 0000000000..e601d36da8 --- /dev/null +++ b/testsuite/tests/th/T14875.hs @@ -0,0 +1,14 @@ +{-# LANGUAGE ScopedTypeVariables #-} +{-# LANGUAGE TemplateHaskell #-} +module T14875 where + +$([d| f :: Bool -> Bool + f x = case x of + (True :: Bool) -> True + (False :: Bool) -> False + + g :: Bool -> Bool + g x = (case x of + True -> True + False -> False) :: Bool + |]) |