We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
)
1 parent 9322e8c commit e3fb456Copy full SHA for e3fb456
compiler/src/dotty/tools/dotc/parsing/Parsers.scala
@@ -194,7 +194,7 @@ object Parsers {
194
def isNumericLit = numericLitTokens contains in.token
195
def isTemplateIntro = templateIntroTokens contains in.token
196
def isDclIntro = dclIntroTokens contains in.token
197
- def isStatSeqEnd = in.isNestedEnd || in.token == EOF
+ def isStatSeqEnd = in.isNestedEnd || in.token == EOF || in.token == RPAREN
198
def mustStartStat = mustStartStatTokens contains in.token
199
200
/** Is current token a hard or soft modifier (in modifier position or not)? */
tests/pos/i7998.scala
@@ -0,0 +1,6 @@
1
+@main def Test =
2
+ (
3
+ try 1
4
+ catch
5
+ case _: Throwable => 2
6
+ )
0 commit comments