Skip to content

Commit cc6ad57

Browse files
oderskynicolasstucki
authored andcommitted
Fix diagnostics breakage
Someone changed TastyPrinter.printContents to return a string without actually printing anything. Furthermore this was done without checking who else uses the function, which means that importan diagnostics broke. Thank you very much! I spent about an hour figuring out what went wrong.
1 parent 6dc6e79 commit cc6ad57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/Pickler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class Pickler extends Phase {
7878
// println(i"rawBytes = \n$rawBytes%\n%") // DEBUG
7979
if (pickling ne noPrinter) {
8080
println(i"**** pickled info of $cls")
81-
new TastyPrinter(pickler.assembleParts()).printContents()
81+
println(new TastyPrinter(pickler.assembleParts()).printContents())
8282
}
8383
}
8484
}

0 commit comments

Comments
 (0)