Skip to content

Commit e466fa4

Browse files
szymon-rdKordyjan
authored andcommitted
No need to reset JavaStatic as its removed with the amsk
1 parent fad1584 commit e466fa4

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,6 @@ class LazyVals extends MiniPhase with IdentityDenotTransformer {
467467
containerSymbol.addAnnotation(Annotation(defn.VolatileAnnot, containerSymbol.span)) // private @volatile var _x: AnyRef
468468
containerSymbol.addAnnotations(x.symbol.annotations) // pass annotations from original definition
469469
containerSymbol.removeAnnotation(defn.ScalaStaticAnnot)
470-
containerSymbol.resetFlag(JavaStatic)
471470
val getOffset =
472471
Select(ref(defn.LazyValsModule), lazyNme.RLazyVals.getOffsetStatic)
473472
val containerTree = ValDef(containerSymbol, nullLiteral)

0 commit comments

Comments
 (0)