Skip to content

Commit dfbedbe

Browse files
Update compiler/src/dotty/tools/dotc/typer/Typer.scala
1 parent 3dbc18b commit dfbedbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ class Typer extends Namer
301301
curOwner
302302
effectiveOwner.thisType.select(name, defDenot)
303303
}
304-
if (!(curOwner.is(Package)) || isDefinedInCurrentUnit(defDenot))
304+
if (!curOwner.is(Package) || isDefinedInCurrentUnit(defDenot))
305305
result = checkNewOrShadowed(found, definition) // no need to go further out, we found highest prec entry
306306
else {
307307
if (ctx.scala2Mode && !foundUnderScala2.exists)

0 commit comments

Comments
 (0)