File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
compiler/src/dotty/tools/dotc/transform
scaladoc/test-source-links/dotty/tools/scaladoc/source-links Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -138,15 +138,12 @@ class Pickler extends Phase {
138
138
}
139
139
}
140
140
141
-
142
-
143
141
private def testSame (unpickled : String , previous : String , cls : ClassSymbol )(using Context ) =
144
142
if (previous != unpickled) {
145
- val i = Pickler .counter.incrementAndGet()
146
- output(" before-pickling.txt" + i, previous)
147
- output(" after-pickling.txt" + i, unpickled)
143
+ output(" before-pickling.txt" , previous)
144
+ output(" after-pickling.txt" , unpickled)
148
145
report.error(s """ pickling difference for $cls in ${cls.source}, for details:
149
146
|
150
- | diff before-pickling.txt $i after-pickling.txt $i """ .stripMargin)
147
+ | diff before-pickling.txt after-pickling.txt """ .stripMargin)
151
148
}
152
149
}
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ class RemoteLinksTest:
46
46
println(s " Checking $link" )
47
47
members.foreach { case (member, expectedLine) =>
48
48
if ! member.startsWith(" given_" ) then // TODO: handle synthetic givens, for now we disable them from testing
49
- val toLine = expectedLine.toInt + 3
49
+ val toLine = expectedLine + 3
50
50
val memberToMatch = member.replace(" `" , " " )
51
51
val lineCorrectlyDefined = (expectedLine until toLine).exists{ line =>
52
52
val loc = doc.select(s " #LC $line" ).text
You can’t perform that action at this time.
0 commit comments