Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions compiler/src/dotty/tools/dotc/transform/init/Checker.scala
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,11 @@ class Checker extends MiniPhase {
import semantic._
val tpl = tree.rhs.asInstanceOf[Template]
val thisRef = ThisRef(cls)
val heap = Objekt(cls, fields = mutable.Map.empty)
val res = eval(tpl, thisRef, cls)(using heap, ctx, Vector.empty)
val obj = Objekt(cls, fields = mutable.Map.empty, outers = mutable.Map(cls -> Hot))
given Promoted = Promoted.empty
given Trace = Trace.empty
heap.update(thisRef, obj)
val res = eval(tpl, thisRef, cls)
res.errors.foreach(_.issue)
}

Expand Down
Loading