Skip to content
Snippets Groups Projects
Commit 9aad7af4 authored by simonpj's avatar simonpj
Browse files

Test Trac #5038

parent bde76b23
No related branches found
No related tags found
No related merge requests found
{-# 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!
2
......@@ -27,3 +27,4 @@ test('T303', normal, compile, [''])
# Tests from Oleg
test('DoRestrictedM', normal, compile, [''])
test('DoParamM', reqlib('mtl'), compile_fail, [''])
test('T5038', normal, compile_and_run, [''])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment