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 08ca477 commit d4531f0Copy full SHA for d4531f0
compiler/src/dotty/tools/dotc/parsing/JavaParsers.scala
@@ -521,7 +521,7 @@ object JavaParsers {
521
val vparams = formalParams()
522
if (!isVoid) rtpt = optArrayBrackets(rtpt)
523
optThrows()
524
- val bodyOk = !inInterface || mods.is(Flags.DefaultMethod) || mods.is(Flags.JavaStatic)
+ val bodyOk = !inInterface || mods.isOneOf(Flags.DefaultMethod | Flags.JavaStatic)
525
val body =
526
if (bodyOk && in.token == LBRACE)
527
methodBody()
0 commit comments