summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/Global.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/Global.scala b/src/compiler/scala/tools/nsc/Global.scala
index 05a42163d0..ef243c1b06 100644
--- a/src/compiler/scala/tools/nsc/Global.scala
+++ b/src/compiler/scala/tools/nsc/Global.scala
@@ -665,7 +665,8 @@ class Global(var settings: Settings, var reporter: Reporter) extends SymbolTable
else if (sym.isModuleClass) compiles(sym.sourceModule)
else false
- def compileSources(sources: List[SourceFile]) {
+ def compileSources(_sources: List[SourceFile]) {
+ val sources = _sources.removeDuplicates // bug #1268, scalac confused by duplicated filenames
if (reporter.hasErrors)
return // there is a problem already, e.g. a
// plugin was passed a bad option