diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2009-05-18 13:09:27 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2009-05-18 13:09:27 +0000 |
commit | b80d1e378e586d461b2b368a8e2612b55e79efc1 (patch) | |
tree | bb06c8d76e12ea988bdc9bf450c57aec2c638739 /src | |
parent | 8fb4f2c37d579545674fc9d1fe3f66c80880dcbf (diff) | |
download | scala-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')
-rw-r--r-- | src/compiler/scala/tools/nsc/symtab/SymbolLoaders.scala | 3 |
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] |