Skip to content

Commit d8c574a

Browse files
committed
Fix admissibility criterion for Inline
1 parent c13e7af commit d8c574a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/typer/Checking.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ object Checking {
349349
checkNoConflict(Private, Protected)
350350
checkNoConflict(Abstract, Override)
351351
checkNoConflict(Lazy, Inline)
352-
if (sym.is(Inline)) checkApplicable(Inline, sym.is(Method, butNot = Mutable))
352+
if (sym.is(Inline)) checkApplicable(Inline, sym.isTerm && !sym.is(Mutable | Module))
353353
if (sym.is(Lazy)) checkApplicable(Lazy, !sym.is(Method | Mutable))
354354
if (sym.isType && !sym.is(Deferred))
355355
for (cls <- sym.allOverriddenSymbols.filter(_.isClass)) {

0 commit comments

Comments
 (0)