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 e4cb221 commit 46bb161Copy full SHA for 46bb161
compiler/src/dotty/tools/dotc/parsing/Parsers.scala
@@ -3486,6 +3486,7 @@ object Parsers {
3486
stat.tparams.head.span)
3487
else if stat.rhs.isEmpty then
3488
syntaxError(i"extension method cannot be abstract", stat.span)
3489
+ case EmptyTree =>
3490
case stat =>
3491
syntaxError(i"extension clause can only define methods", stat.span)
3492
}
0 commit comments