Skip to content

Commit 390691e

Browse files
committed
Fix crash: impossible to construct super calls for leaked objects
1 parent 01fc3e6 commit 390691e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/init/Semantic.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ class Semantic {
372372
buffer.nonEmpty || methods.exists { denot =>
373373
val m = denot.symbol
374374
if !m.isConstructor && m.hasSource then
375-
val res = warm.call(m, superType = m.owner.typeRef, source = source)
375+
val res = warm.call(m, superType = NoType, source = source)
376376
buffer ++= res.ensureHot(msg, source).errors
377377
buffer.nonEmpty
378378
}

0 commit comments

Comments
 (0)