We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a84f47 commit 2256ca5Copy full SHA for 2256ca5
compiler/src/dotty/tools/dotc/typer/Namer.scala
@@ -315,8 +315,8 @@ class Namer { typer: Typer =>
315
conflictsDetected = true
316
317
def checkNoConflictWith(preExisting: Symbol) =
318
- if (preExisting.isDefinedInCurrentRun || preExisting.is(Package))
319
- && (!preExisting.is(Private) || preExisting.owner.is(Package))
+ if (preExisting.isDefinedInCurrentRun || preExisting.lastKnownDenotation.is(Package))
+ && (!preExisting.lastKnownDenotation.is(Private) || preExisting.owner.is(Package))
320
then conflict(preExisting)
321
322
def checkNoConflictIn(owner: Symbol) =
0 commit comments