From 3eb1eb58f11b5bbf76d9870d9d92d78ea6c97ae8 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Sat, 7 Feb 2009 20:41:08 +0000 Subject: Fix for #1268. --- src/compiler/scala/tools/nsc/Global.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3