diff options
Diffstat (limited to 'testsuite/tests/parser/should_fail/NondecreasingIndentationFail.hs')
-rw-r--r-- | testsuite/tests/parser/should_fail/NondecreasingIndentationFail.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/parser/should_fail/NondecreasingIndentationFail.hs b/testsuite/tests/parser/should_fail/NondecreasingIndentationFail.hs new file mode 100644 index 0000000000..5b67a60612 --- /dev/null +++ b/testsuite/tests/parser/should_fail/NondecreasingIndentationFail.hs @@ -0,0 +1,10 @@ + +{-# LANGUAGE NoNondecreasingIndentation #-} + +module ShouldCompile where + +f :: IO () +f = do if True then f else do + f + if True then f else do + f |