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.
2 parents 79d9a6f + b875cc0 commit 1fb83bdCopy full SHA for 1fb83bd
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