Skip to content

Commit 62c1293

Browse files
committed
Remove redundant code
Now handled by the logic for modules jus above
1 parent 59a2f32 commit 62c1293

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -451,10 +451,5 @@ class PostTyper extends MacroTransform with IdentityDenotTransformer { thisPhase
451451
sym.addAnnotation(defn.ExperimentalAnnot)
452452
sym.companionModule.addAnnotation(defn.ExperimentalAnnot)
453453

454-
if sym.is(Enum) && sym.hasAnnotation(defn.ExperimentalAnnot) then
455-
// Add @experimental annotation to enum class definitions
456-
val compMod = sym.companionModule.moduleClass
457-
compMod.addAnnotation(defn.ExperimentalAnnot)
458-
compMod.companionModule.addAnnotation(defn.ExperimentalAnnot)
459454
}
460455
}

0 commit comments

Comments
 (0)