Skip to content

Commit 2256ca5

Browse files
committed
Force less in checkNoConflict
1 parent 3a84f47 commit 2256ca5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,8 @@ class Namer { typer: Typer =>
315315
conflictsDetected = true
316316

317317
def checkNoConflictWith(preExisting: Symbol) =
318-
if (preExisting.isDefinedInCurrentRun || preExisting.is(Package))
319-
&& (!preExisting.is(Private) || preExisting.owner.is(Package))
318+
if (preExisting.isDefinedInCurrentRun || preExisting.lastKnownDenotation.is(Package))
319+
&& (!preExisting.lastKnownDenotation.is(Private) || preExisting.owner.is(Package))
320320
then conflict(preExisting)
321321

322322
def checkNoConflictIn(owner: Symbol) =

0 commit comments

Comments
 (0)