diff options
Diffstat (limited to 'src/dotty/tools/dotc/typer/Namer.scala')
-rw-r--r-- | src/dotty/tools/dotc/typer/Namer.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/typer/Namer.scala b/src/dotty/tools/dotc/typer/Namer.scala index cc5d041b9..bedaf55c3 100644 --- a/src/dotty/tools/dotc/typer/Namer.scala +++ b/src/dotty/tools/dotc/typer/Namer.scala @@ -168,7 +168,7 @@ class Namer { typer: Typer => println(s"entered: $sym in ${ctx.owner} and ${ctx.effectiveScope}") if (sym.owner is PackageClass) { val preExisting = sym.owner.decls.lookup(sym.name) - if (preExisting.defRunId == ctx.runId) + if (preExisting.isDefinedInCurrentRun) ctx.error(s"${sym.showLocated} is compiled twice", sym.pos) } ctx.enter(sym) |