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 3dbc18b commit dfbedbeCopy full SHA for dfbedbe
compiler/src/dotty/tools/dotc/typer/Typer.scala
@@ -301,7 +301,7 @@ class Typer extends Namer
301
curOwner
302
effectiveOwner.thisType.select(name, defDenot)
303
}
304
- if (!(curOwner.is(Package)) || isDefinedInCurrentUnit(defDenot))
+ if (!curOwner.is(Package) || isDefinedInCurrentUnit(defDenot))
305
result = checkNewOrShadowed(found, definition) // no need to go further out, we found highest prec entry
306
else {
307
if (ctx.scala2Mode && !foundUnderScala2.exists)
0 commit comments