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 333ab8e commit c431f93Copy full SHA for c431f93
compiler/src/dotty/tools/dotc/typer/Typer.scala
@@ -358,10 +358,6 @@ class Typer extends Namer
358
}
359
if !curOwner.is(Package) || isDefinedInCurrentUnit(defDenot) then
360
result = checkNewOrShadowed(found, Definition) // no need to go further out, we found highest prec entry
361
- found match
362
- case found: NamedType if curOwner.isClass && isInherited(found.denot) =>
363
- checkNoOuterDefs(found.denot, ctx, ctx)
364
- case _ =>
365
else
366
if migrateTo3 && !foundUnderScala2.exists then
367
foundUnderScala2 = checkNewOrShadowed(found, Definition, scala2pkg = true)
0 commit comments