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 a6f27df commit 3d6c79aCopy full SHA for 3d6c79a
compiler/src/dotty/tools/dotc/transform/init/Semantic.scala
@@ -589,7 +589,7 @@ class Semantic {
589
590
// class body
591
tpl.body.foreach {
592
- case vdef : ValDef =>
+ case vdef : ValDef if !vdef.symbol.is(Flags.Lazy) =>
593
val res = eval(vdef.rhs, thisV, klass)
594
errorBuffer ++= res.errors
595
thisV.updateField(vdef.symbol, res.value)
0 commit comments