Skip to content

Commit d1a54fe

Browse files
committed
Use ctx.error
1 parent 272fe21 commit d1a54fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/backend/jvm/DottyBackendInterface.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,10 +486,10 @@ class DottyBackendInterface(outputDirectory: AbstractFile, val superCallsMap: Ma
486486
try body
487487
catch {
488488
case ex: Throwable =>
489-
println(i"""|compiler bug: created invalid generic signature for $sym in ${sym.denot.owner.showFullName}
489+
ctx.error(i"""|compiler bug: created invalid generic signature for $sym in ${sym.denot.owner.showFullName}
490490
|signature: $sig
491491
|if this is reproducible, please report bug at https://github.com/lampepfl/dotty/issues
492-
""".trim)
492+
""".trim, sym.sourcePos)
493493
throw ex
494494
}
495495
}

0 commit comments

Comments
 (0)