-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
area:coverageCode coverage, see https://dotty.epfl.ch/docs/internals/coverage.htmlCode coverage, see https://dotty.epfl.ch/docs/internals/coverage.htmlitype:bug
Description
Compiler version
3.3.1
Minimized code
https://gist.github.com/tarao/43d2c4263478c91ae3d5e21f314a7e13
Output
...
0
A.scala
<empty>
A$
Object
<empty>.A$
hello
37
53
2
println
...
Expectation
...
0
A.scala
<empty>
A$
Object
<empty>.A$
hello
37
53
3
println
...
Note
Output in Scala 2.13.12 looks like this:
...
1
A.scala
<empty>
A
Object
A
hello
37
53
3
scala.Predef.println
...
- in Scala 2.13.12 : line number starts from 1
- in Scala 3.3.1 : line number starts from 0
The incompatibility breaks highlighting using cobertura.xml (which relies on line numbers not offsets) for example on Codecov.
I guess we need + 1 here?
tanishiking
Metadata
Metadata
Assignees
Labels
area:coverageCode coverage, see https://dotty.epfl.ch/docs/internals/coverage.htmlCode coverage, see https://dotty.epfl.ch/docs/internals/coverage.htmlitype:bug