Skip to content

Commit

Permalink
Merge pull request #15631 from dotty-staging/fix-15629
Browse files Browse the repository at this point in the history
  • Loading branch information
dwijnand authored Jul 11, 2022
2 parents 79d9a6f + b875cc0 commit 1fb83bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/typer/Namer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ class Namer { typer: Typer =>
if (child == other)
annots // can happen if a class has several inaccessible children
else {
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")
val (prefix, otherAnnot :: rest) = annots.span(_.symbol != defn.ChildAnnot): @unchecked
prefix ::: otherAnnot :: insertInto(rest)
}
Expand Down

0 comments on commit 1fb83bd

Please sign in to comment.