Skip to content

Commit 47884f3

Browse files
committed
Avoid double child generation
1 parent 7d15704 commit 47884f3

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,6 @@ class PostTyper extends MacroTransform with SymTransformer { thisTransformer =>
252252
ctx.compilationUnit.source.exists &&
253253
sym != defn.SourceFileAnnot)
254254
sym.addAnnotation(Annotation.makeSourceFile(ctx.compilationUnit.source.file.path))
255-
256-
// Add Child annotation to sealed parents unless current class is anonymous
257-
sym.registerIfChild()
258255
tree
259256
}
260257
super.transform(tree)

0 commit comments

Comments
 (0)