Skip to content

Commit 183985c

Browse files
committed
Deduplicate names before starting compilation
1 parent 72ca652 commit 183985c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/Driver.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Driver extends DotClass {
2626
if (fileNames.nonEmpty)
2727
try {
2828
val run = compiler.newRun
29-
run.compile(fileNames)
29+
run.compile(fileNames.distinct)
3030
run.printSummary()
3131
}
3232
catch {

compiler/src/dotty/tools/dotc/fromtasty/TASTYRun.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import core.Contexts._
66

77
class TASTYRun(comp: Compiler, ictx: Context) extends Run(comp, ictx) {
88
override def compile(classNames: List[String]) = {
9-
val units = classNames.distinct.map(new TASTYCompilationUnit(_))
9+
val units = classNames.map(new TASTYCompilationUnit(_))
1010
compileUnits(units)
1111
}
1212
}

0 commit comments

Comments
 (0)