File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -484,11 +484,7 @@ trait Applications extends Compatibility {
484484 cx.denotNamed(meth.name).hasAltWith(_.symbol == meth)) {
485485 val denot = cx.denotNamed(getterName)
486486 if (denot.exists) ref(TermRef (cx.owner.thisType, getterName, denot))
487- else {
488- assert(ctx.mode.is(Mode .Interactive ) || ctx.reporter.errorsReported,
489- s " non-existent getter denotation ( $denot) for getter( $getterName) " )
490- findGetter(cx.outer)
491- }
487+ else findGetter(cx.outer)
492488 }
493489 else findGetter(cx.outer)
494490 findGetter(ctx)
Original file line number Diff line number Diff line change 1+ class Foo
2+ def f (x : Int , y : Int = 1 ) = ???
3+
4+ object bar extends Foo
5+ f() // error: missing argument
You can’t perform that action at this time.
0 commit comments