Skip to content

Commit 3f99915

Browse files
committed
Reset the inline flag for accessors in traits at Mixin.
This might not be the best way to fix t4753.scala, but this is the last run test and I'll take anything that makes the tests pass at this point.
1 parent 2eb743c commit 3f99915

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/Mixin.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class Mixin extends MiniPhase with SymTransformer { thisPhase =>
131131
if (sym.is(Accessor, butNot = Deferred) && sym.owner.is(Trait)) {
132132
val sym1 =
133133
if (sym.is(Lazy)) sym
134-
else sym.copySymDenotation(initFlags = sym.flags &~ ParamAccessor | Deferred)
134+
else sym.copySymDenotation(initFlags = sym.flags &~ (ParamAccessor | Inline) | Deferred)
135135
sym1.ensureNotPrivate
136136
}
137137
else if sym.isAllOf(ModuleClass | Private) && sym.owner.is(Trait) then

0 commit comments

Comments
 (0)