Commit 994a9db6 authored by simonpj's avatar simonpj
Browse files

Add test for infix function definitions

parent f78c349f
......@@ -46,3 +46,4 @@ test('rnfail042', normal, compile_fail, [''])
test('rnfail043', skip_if_no_ghci, compile_fail, [''])
test('rnfail044', normal, compile_fail, [''])
test('rnfail045', normal, compile_fail, [''])
-- These crashed GHC 6.4.2
module ShouldFail where
x `op1` y = True
op1 x = False
op2 x = False
x `op2` y = True
rnfail045.hs:5:0:
Equations for `op1' have different numbers of arguments
rnfail045.hs:5:0-15
rnfail045.hs:6:0-12
rnfail045.hs:8:0:
Equations for `op2' have different numbers of arguments
rnfail045.hs:8:0-12
rnfail045.hs:9:0-15
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment