Skip to content

Commit 72ca652

Browse files
committed
Deduplicate class names before starting compiling from TASTY
1 parent d4bb969 commit 72ca652

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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.map(new TASTYCompilationUnit(_))
9+
val units = classNames.distinct.map(new TASTYCompilationUnit(_))
1010
compileUnits(units)
1111
}
1212
}

0 commit comments

Comments
 (0)