Skip to content

Commit 6868f97

Browse files
committed
Better support for debugging
1 parent 8b9b976 commit 6868f97

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

compiler/src/dotty/tools/dotc/core/TypeErasure.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ class TypeErasure(isJava: Boolean, semiEraseVCs: Boolean, isConstructor: Boolean
532532
}
533533
} catch {
534534
case ex: AssertionError =>
535-
println(s"no sig for $tp")
535+
println(s"no sig for $tp because of ${ex.printStackTrace()}")
536536
throw ex
537537
}
538538

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import Periods._
1111
import Phases._
1212
import Symbols._
1313
import Flags.Module
14+
import reporting.ThrowingReporter
1415
import collection.mutable
1516

1617
/** This phase pickles trees */
@@ -77,6 +78,7 @@ class Pickler extends Phase {
7778
testUnpickler(
7879
ctx.fresh
7980
.setPeriod(Period(ctx.runId + 1, FirstPhaseId))
81+
.setReporter(new ThrowingReporter(ctx.reporter))
8082
.addMode(Mode.ReadPositions))
8183
result
8284
}

0 commit comments

Comments
 (0)