File tree 2 files changed +11
-1
lines changed
compiler/src/dotty/tools/dotc/parsing
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -539,7 +539,7 @@ object Scanners {
539
539
|| nextWidth == lastWidth && (indentPrefix == MATCH || indentPrefix == CATCH ) && token != CASE then
540
540
if currentRegion.isOutermost then
541
541
if nextWidth < lastWidth then currentRegion = topLevelRegion(nextWidth)
542
- else if ! isLeadingInfixOperator(nextWidth) && ! statCtdTokens.contains(lastToken) then
542
+ else if ! isLeadingInfixOperator(nextWidth) && ! statCtdTokens.contains(lastToken) && lastToken != INDENT then
543
543
currentRegion match
544
544
case r : Indented =>
545
545
currentRegion = r.enclosing
Original file line number Diff line number Diff line change
1
+ def main (args : Array [String ]): Unit =
2
+ val bar : PartialFunction [Throwable , Unit ] =
3
+ case e : IllegalArgumentException => e.printStackTrace
4
+ case e : Throwable => e.printStackTrace
5
+ try
6
+ println(" a" )
7
+ catch
8
+ bar
9
+ finally
10
+ println(" a" )
You can’t perform that action at this time.
0 commit comments