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:
74
74
75
75
- the first token on the next line has an indentation width strictly less
76
76
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
+ ```
77
82
- the first token on the next line is not a
78
83
[leading infix operator](../ changed- features/ operators.html).
79
84
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