We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59a2f32 commit 62c1293Copy full SHA for 62c1293
compiler/src/dotty/tools/dotc/transform/PostTyper.scala
@@ -451,10 +451,5 @@ class PostTyper extends MacroTransform with IdentityDenotTransformer { thisPhase
451
sym.addAnnotation(defn.ExperimentalAnnot)
452
sym.companionModule.addAnnotation(defn.ExperimentalAnnot)
453
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)
459
}
460
0 commit comments