Skip to content

Bad symbol position if def is infix and rangepos is false #12074

Closed
scala/scala
#9111
@som-snytt

Description

@som-snytt

reproduction steps

using Scala 2.13.3,

[warn] /Users/.../NumericRangeTest.scala:66:63: local val nr in method t11152_BigDecimalMakesProgress is never used
[warn]       val nr = (BigDecimal("-7", mc2) to BigDecimal("7", mc2) by BigDecimal("0.01", mc2))
[warn]                                                               ^
[warn] /Users/.../NumericRangeTest.scala:67:33: local val upscale in method t11152_BigDecimalMakesProgress is never used
[warn]       val upscale = -700 to 700 by 1
[warn]                                 ^
[warn] two warnings found

problem

Normally it points to the unused identifier.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions