Skip to content

Commit c431f93

Browse files
committed
Neutralize the effect of PR scala#8622
1 parent 333ab8e commit c431f93

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

compiler/src/dotty/tools/dotc/typer/Typer.scala

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,10 +358,6 @@ class Typer extends Namer
358358
}
359359
if !curOwner.is(Package) || isDefinedInCurrentUnit(defDenot) then
360360
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 _ =>
365361
else
366362
if migrateTo3 && !foundUnderScala2.exists then
367363
foundUnderScala2 = checkNewOrShadowed(found, Definition, scala2pkg = true)

0 commit comments

Comments
 (0)