Skip to content

Commit afee749

Browse files
committed
Refactor expression to work around an inference regression
1 parent 3965690 commit afee749

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/reporting/UniqueMessagePositions.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ trait UniqueMessagePositions extends Reporter {
3333
for offset <- dia.pos.start to dia.pos.end do
3434
positions.get((ctx.source, offset)) match
3535
case Some(dia1) if dia1.hides(dia) =>
36-
case _ => positions((ctx.source, offset)) = dia
36+
case _ => positions((ctx.source, Integer.valueOf(offset).nn)) = dia
3737
super.markReported(dia)
3838
}

0 commit comments

Comments
 (0)