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 1724d84 commit b875cc0Copy full SHA for b875cc0
compiler/src/dotty/tools/dotc/typer/Namer.scala
@@ -478,7 +478,7 @@ class Namer { typer: Typer =>
478
if (child == other)
479
annots // can happen if a class has several inaccessible children
480
else {
481
- assert(childStart != other.span.start, i"duplicate child annotation $child / $other")
+ assert(childStart != other.span.start || child.source != other.source, i"duplicate child annotation $child / $other")
482
val (prefix, otherAnnot :: rest) = annots.span(_.symbol != defn.ChildAnnot): @unchecked
483
prefix ::: otherAnnot :: insertInto(rest)
484
}
0 commit comments