Skip to content

Commit b0b6902

Browse files
oderskyDarkDimius
authored andcommitted
Reset inSuperCall when lifting methods
After lambdaLift, methods are no longer local to cosntructors, so their inSuperCall flag is reset.
1 parent 6bcc318 commit b0b6902

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
@@ -294,7 +294,7 @@ class LambdaLift extends MiniPhase with IdentityDenotTransformer { thisTransform
294294
local.copySymDenotation(
295295
owner = newOwner,
296296
name = newName(local),
297-
initFlags = local.flags | Private | maybeStatic | maybeNotJavaPrivate,
297+
initFlags = local.flags &~ InSuperCall | Private | maybeStatic | maybeNotJavaPrivate,
298298
info = liftedInfo(local)).installAfter(thisTransform)
299299
if (local.isClass)
300300
for (member <- local.asClass.info.decls)

0 commit comments

Comments
 (0)