File tree 3 files changed +14
-6
lines changed
compiler/test/dotty/tools/vulpix
3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,18 @@ object FileDiff {
28
28
if (! (new File (checkFile)).exists) Nil
29
29
else Using (Source .fromFile(checkFile, StandardCharsets .UTF_8 .name))(_.getLines().toList).get
30
30
31
- if (! matches(outputLines, checkLines)) Some (
32
- s """ |Output from ' $sourceTitle' did not match check file. Actual output:
33
- | ${outputLines.mkString(EOL )}
34
- | """ .stripMargin + " \n " )
31
+ if (! matches(outputLines, checkLines)) {
32
+ Some (
33
+ s """ |Output from ' $sourceTitle' did not match check file. Actual output:
34
+ | ${outputLines.mkString(EOL )}
35
+ |
36
+ |Output
37
+ | ${outputLines.map(s => s.stripLineEnd.toList.map(_.toInt.toHexString).mkString(" " )).mkString(" \n " )}
38
+ |
39
+ |Check
40
+ | ${checkLines.map(s => s.stripLineEnd.toList.map(_.toInt.toHexString).mkString(" " )).mkString(" \n " )}
41
+ | """ .stripMargin + " \n " )
42
+ }
35
43
else None
36
44
}
37
45
Original file line number Diff line number Diff line change 1
- -- [E195 ] Syntax Warning: tests\neg\i20105.scala:6:9 -------------------------------------------------------------------
1
+ -- [E199 ] Syntax Warning: tests\neg\i20105.scala:6:9 -------------------------------------------------------------------
2
2
6 | foo()
3
3
| ^^^^^
4
4
| The tail recursive def foo contains a recursive call inside the non-inlined inner def bar
Original file line number Diff line number Diff line change 1
- -- [E195 ] Syntax Warning: tests\warn\i20105.scala:6:9 ------------------------------------------------------------------
1
+ -- [E199 ] Syntax Warning: tests\warn\i20105.scala:6:9 ------------------------------------------------------------------
2
2
6 | foo() // warn
3
3
| ^^^^^
4
4
| The tail recursive def foo contains a recursive call inside the non-inlined inner def bar
You can’t perform that action at this time.
0 commit comments