summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2009-02-07 20:41:08 +0000
committerPaul Phillips <paulp@improving.org>2009-02-07 20:41:08 +0000
commit3eb1eb58f11b5bbf76d9870d9d92d78ea6c97ae8 (patch)
treec1fa8e53b560dce3a9fc52001f7e7dc9336b1c32 /src
parent3c43622fb2fea02bf7fbdac383c994b86e7d54c2 (diff)
downloadscala-3eb1eb58f11b5bbf76d9870d9d92d78ea6c97ae8.tar.gz
scala-3eb1eb58f11b5bbf76d9870d9d92d78ea6c97ae8.tar.bz2
scala-3eb1eb58f11b5bbf76d9870d9d92d78ea6c97ae8.zip
Fix for #1268.
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