Skip to content

Commit df1b5ed

Browse files
committed
Only check symbol info if completed
1 parent 7f5eaa8 commit df1b5ed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ class TreeChecker extends Phase with SymTransformer {
6868

6969
def transformSym(symd: SymDenotation)(using Context): SymDenotation = {
7070
val sym = symd.symbol
71-
Checking.checkWellFormedType(symd.info)
71+
72+
if symd.isCompleted then
73+
Checking.checkWellFormedType(symd.info)
7274

7375
if (sym.isClass && !sym.isAbsent()) {
7476
val validSuperclass = sym.isPrimitiveValueClass || defn.syntheticCoreClasses.contains(sym) ||

0 commit comments

Comments
 (0)