File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -366,8 +366,12 @@ trait Applications extends Compatibility { self: Typer with Dynamic =>
366
366
else if (cx.scope != cx.outer.scope &&
367
367
cx.denotNamed(meth.name).hasAltWith(_.symbol == meth)) {
368
368
val denot = cx.denotNamed(getterName)
369
- assert(denot.exists, s " non-existent getter denotation ( $denot) for getter( $getterName) " )
370
- ref(TermRef (cx.owner.thisType, getterName, denot))
369
+ if (denot.exists) ref(TermRef (cx.owner.thisType, getterName, denot))
370
+ else {
371
+ assert(ctx.mode.is(Mode .Interactive ),
372
+ s " non-existent getter denotation ( $denot) for getter( $getterName) " )
373
+ findGetter(cx.outer)
374
+ }
371
375
} else findGetter(cx.outer)
372
376
}
373
377
findGetter(ctx)
You can’t perform that action at this time.
0 commit comments