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 fb1272c commit 36d5fbdCopy full SHA for 36d5fbd
compiler/src/dotty/tools/dotc/typer/Namer.scala
@@ -149,7 +149,7 @@ class Namer { typer: Typer =>
149
val preExisting = owner.unforcedDecls.lookup(name)
150
if (preExisting.isDefinedInCurrentRun || preExisting.lastKnownDenotation.is(Package))
151
&& (!preExisting.lastKnownDenotation.is(Private) || preExisting.owner.is(Package))
152
- && (!preExisting.lastKnownDenotation.isPackageObject
+ && (!preExisting.lastKnownDenotation.is(Package)
153
|| preExisting.associatedFile != ctx.source.file && preExisting.associatedFile != null)
154
// isDefinedInCurrentRun does not work correctly for package objects, because
155
// package objects are updated to the new run earlier than normal classes, everytime
0 commit comments