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 3965690 commit afee749Copy full SHA for afee749
compiler/src/dotty/tools/dotc/reporting/UniqueMessagePositions.scala
@@ -33,6 +33,6 @@ trait UniqueMessagePositions extends Reporter {
33
for offset <- dia.pos.start to dia.pos.end do
34
positions.get((ctx.source, offset)) match
35
case Some(dia1) if dia1.hides(dia) =>
36
- case _ => positions((ctx.source, offset)) = dia
+ case _ => positions((ctx.source, Integer.valueOf(offset).nn)) = dia
37
super.markReported(dia)
38
}
0 commit comments