Skip to content

Commit 155e1be

Browse files
committed
Reset inSuperCall when lifting methods
After lambdaLift, methods are no longer local to cosntructors, so their inSuperCall flag is reset.
1 parent 1a84054 commit 155e1be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotty/tools/dotc/transform/LambdaLift.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ class LambdaLift extends MiniPhase with IdentityDenotTransformer { thisTransform
279279
local.copySymDenotation(
280280
owner = newOwner,
281281
name = newName(local),
282-
initFlags = local.flags | Private | maybeStatic | maybeNotJavaPrivate,
282+
initFlags = local.flags &~ InSuperCall | Private | maybeStatic | maybeNotJavaPrivate,
283283
info = liftedInfo(local)).installAfter(thisTransform)
284284
if (local.isClass)
285285
for (member <- local.asClass.info.decls)

0 commit comments

Comments
 (0)