diff options
Diffstat (limited to 'testsuite/tests/parser/should_fail/ParserNoMultiWayIf.hs')
-rw-r--r-- | testsuite/tests/parser/should_fail/ParserNoMultiWayIf.hs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/parser/should_fail/ParserNoMultiWayIf.hs b/testsuite/tests/parser/should_fail/ParserNoMultiWayIf.hs new file mode 100644 index 0000000000..f9ded3dc69 --- /dev/null +++ b/testsuite/tests/parser/should_fail/ParserNoMultiWayIf.hs @@ -0,0 +1,7 @@ +module ParserNoMultiWayIf where + +x = 123 +y = if | x < 0 -> -1 + | x == 0 -> 0 + | otherwise -> 1 + |