Skip to content

Commit 3ea4894

Browse files
committed
Fix lazy val access
1 parent 56d402e commit 3ea4894

File tree

4 files changed

+1
-1
lines changed

4 files changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ object Checking {
264264
assert(cls == state.thisClass, "unexpected potential " + pot.show)
265265

266266
val target = resolve(cls, sym)
267-
if (!target.is(Flags.Method))
267+
if (!target.isOneOf(Flags.Method | Flags.Lazy))
268268
check(FieldAccess(pot, target)(eff.source))
269269
else if (target.isInternal) {
270270
val effs = thisRef.effectsOf(target)
File renamed without changes.

0 commit comments

Comments
 (0)