Skip to content

Commit 546fbd1

Browse files
Address review comments
1 parent 470be47 commit 546fbd1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ class CodeGen(val int: DottyBackendInterface, val primitives: DottyPrimitives)(
8585
case ex: InterruptedException => throw ex
8686
case ex: CompilationUnit.SuspendException => throw ex
8787
case ex: Throwable =>
88+
if !ex.isInstanceOf[TypeError] then ex.printStackTrace()
8889
report.error(s"Error while emitting ${unit.source}\n${ex.getMessage}", cd.sourcePos)
8990

9091

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ object SymDenotations {
870870
def derivesFrom(base: Symbol)(using Context): Boolean = false
871871

872872
/** Could `this` derive from `base` now or in the future.
873-
* For concistency with derivesFrom, The info is only forced when this is a ClassDenotation.
873+
* For concistency with derivesFrom, the info is only forced when this is a ClassDenotation.
874874
* If the info is a TempClassInfo then the baseClassSet may be temporarily approximated as empty.
875875
* This is problematic when stability of `!derivesFrom(base)` is assumed for soundness,
876876
* e.g., in `TypeComparer#provablyDisjointClasses`.

0 commit comments

Comments
 (0)