summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorIulian Dragos <jaguarul@gmail.com>2009-05-18 13:09:27 +0000
committerIulian Dragos <jaguarul@gmail.com>2009-05-18 13:09:27 +0000
commitb80d1e378e586d461b2b368a8e2612b55e79efc1 (patch)
treebb06c8d76e12ea988bdc9bf450c57aec2c638739 /src/compiler
parent8fb4f2c37d579545674fc9d1fe3f66c80880dcbf (diff)
downloadscala-b80d1e378e586d461b2b368a8e2612b55e79efc1.tar.gz
scala-b80d1e378e586d461b2b368a8e2612b55e79efc1.tar.bz2
scala-b80d1e378e586d461b2b368a8e2612b55e79efc1.zip
Fixed separate compilation of traits when not u...
Fixed separate compilation of traits when not using the optimiser. The symbol loader will skip implementation classes unless -optimised is on.
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/symtab/SymbolLoaders.scala3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/SymbolLoaders.scala b/src/compiler/scala/tools/nsc/symtab/SymbolLoaders.scala
index 4e0c0cb65b..22c4d8a631 100644
--- a/src/compiler/scala/tools/nsc/symtab/SymbolLoaders.scala
+++ b/src/compiler/scala/tools/nsc/symtab/SymbolLoaders.scala
@@ -166,8 +166,7 @@ abstract class SymbolLoaders {
def refresh() {
/** Is the given name a valid input file base name? */
def isValid(name: String): Boolean =
- name.length() > 0 /*&& !name.endsWith("$class") &&
- (/*settings.XO.value*/true || name.indexOf("$anon") == -1) */
+ name.length() > 0 && (!name.endsWith("$class") || settings.XO.value)
val classes = new HashMap[String, global.classPath0.Context]
val packages = new HashMap[String, global.classPath0.Context]