Skip to content

Commit 9c81284

Browse files
committed
Show stacktrace earlier
1 parent 19e6f77 commit 9c81284

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -2507,6 +2507,7 @@ object SymDenotations {
25072507

25082508
/** A completer for missing references */
25092509
class StubInfo() extends LazyType {
2510+
throw new scala.Error()
25102511

25112512
def initializeToDefaults(denot: SymDenotation, errMsg: Message)(using Context): Unit = {
25122513
denot.info = denot match {
@@ -2522,7 +2523,7 @@ object SymDenotations {
25222523
val sym = denot.symbol
25232524
val errMsg = BadSymbolicReference(denot)
25242525
report.error(errMsg, sym.srcPos)
2525-
if (ctx.debug) throw new scala.Error()
2526+
throw new scala.Error()
25262527
initializeToDefaults(denot, errMsg)
25272528
}
25282529
}

0 commit comments

Comments
 (0)