Skip to content

Commit af6a2ef

Browse files
authored
Fix import suggestion error logging (#18707)
This was printing the extra debug information when testing `tests/neg-deep-subtype/i1650.scala`.
2 parents b90e9c6 + 322f874 commit af6a2ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/typer/ImportSuggestions.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ trait ImportSuggestions:
195195
&& {
196196
val task = new TimerTask:
197197
def run() =
198-
println(i"Cancelling test of $ref when making suggestions for error in ${ctx.source}")
198+
implicits.println(i"Cancelling test of $ref when making suggestions for error in ${ctx.source}")
199199
ctx.run.nn.isCancelled = true
200200
val span = ctx.owner.srcPos.span
201201
val (expectedType, argument, kind) = pt match

0 commit comments

Comments
 (0)