File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
docs/docs/reference/other-new-features Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,11 @@ There are two rules:
7474
7575 - the first token on the next line has an indentation width strictly less
7676 than the current indentation width, and
77+ - the last token on the previous line is not one of the following tokens
78+ which indicate that the previous statement continues :
79+ ```
80+ then else do catch finally yield match
81+ ```
7782 - the first token on the next line is not a
7883 [leading infix operator](../ changed- features/ operators.html).
7984
Original file line number Diff line number Diff line change 1+ object A :
2+ def fn : Unit =
3+ if true then
4+ println(1 )
5+ println(2 ) // error: start of line does not match previous indentation widths
6+ else
7+ println(2 )
You can’t perform that action at this time.
0 commit comments