Skip to content

Commit 8315f78

Browse files
committed
changed to
1 parent 8a5cf8b commit 8315f78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1689,7 +1689,7 @@ class Objects(using Context @constructorOnly):
16891689
tpl.body.foreach {
16901690
case vdef : ValDef if !vdef.symbol.is(Flags.Lazy) && !vdef.rhs.isEmpty =>
16911691
val sym = vdef.symbol
1692-
var res = if (whiteList.contains(sym)) Bottom else eval(vdef.rhs, thisV, klass)
1692+
val res = if (whiteList.contains(sym)) Bottom else eval(vdef.rhs, thisV, klass)
16931693
if sym.is(Flags.Mutable) then
16941694
val addr = Heap.fieldVarAddr(summon[Regions.Data], sym, State.currentObject)
16951695
thisV.initVar(sym, addr)

0 commit comments

Comments
 (0)