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 c13e7af commit d8c574aCopy full SHA for d8c574a
compiler/src/dotty/tools/dotc/typer/Checking.scala
@@ -349,7 +349,7 @@ object Checking {
349
checkNoConflict(Private, Protected)
350
checkNoConflict(Abstract, Override)
351
checkNoConflict(Lazy, Inline)
352
- if (sym.is(Inline)) checkApplicable(Inline, sym.is(Method, butNot = Mutable))
+ if (sym.is(Inline)) checkApplicable(Inline, sym.isTerm && !sym.is(Mutable | Module))
353
if (sym.is(Lazy)) checkApplicable(Lazy, !sym.is(Method | Mutable))
354
if (sym.isType && !sym.is(Deferred))
355
for (cls <- sym.allOverriddenSymbols.filter(_.isClass)) {
0 commit comments