diff options
Diffstat (limited to 'testsuite/tests/rebindable/T5038.hs')
-rw-r--r-- | testsuite/tests/rebindable/T5038.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/rebindable/T5038.hs b/testsuite/tests/rebindable/T5038.hs new file mode 100644 index 0000000000..42f3df2712 --- /dev/null +++ b/testsuite/tests/rebindable/T5038.hs @@ -0,0 +1,10 @@ +{-# LANGUAGE RebindableSyntax #-} +module Main (main) where + +import Prelude + +ifThenElse True t f = f +ifThenElse False t f = t + +main = print (if True then 1 else 2 :: Int) +-- Should print 2! |