We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a5cf8b commit 8315f78Copy full SHA for 8315f78
compiler/src/dotty/tools/dotc/transform/init/Objects.scala
@@ -1689,7 +1689,7 @@ class Objects(using Context @constructorOnly):
1689
tpl.body.foreach {
1690
case vdef : ValDef if !vdef.symbol.is(Flags.Lazy) && !vdef.rhs.isEmpty =>
1691
val sym = vdef.symbol
1692
- var res = if (whiteList.contains(sym)) Bottom else eval(vdef.rhs, thisV, klass)
+ val res = if (whiteList.contains(sym)) Bottom else eval(vdef.rhs, thisV, klass)
1693
if sym.is(Flags.Mutable) then
1694
val addr = Heap.fieldVarAddr(summon[Regions.Data], sym, State.currentObject)
1695
thisV.initVar(sym, addr)
0 commit comments