summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormihaylov <mihaylov@epfl.ch>2006-08-15 09:39:29 +0000
committermihaylov <mihaylov@epfl.ch>2006-08-15 09:39:29 +0000
commitdcc092f2adad6c87dd5972a36ebdffd64c845e1f (patch)
tree05934305fa6fa1ea277ae86c8062cb47d9834ef0
parentd03714058c93a7156d306b02a91762ab942eb238 (diff)
downloadscala-dcc092f2adad6c87dd5972a36ebdffd64c845e1f.tar.gz
scala-dcc092f2adad6c87dd5972a36ebdffd64c845e1f.tar.bz2
scala-dcc092f2adad6c87dd5972a36ebdffd64c845e1f.zip
Fixed bug #669
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Typers.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
index 2132ddc7d3..031012aee2 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
@@ -1162,11 +1162,11 @@ trait Typers requires Analyzer {
if (!attrError) {
val attributed =
if (defn.symbol.isModule) defn.symbol.moduleClass else defn.symbol
- if (attributed.attributes.isEmpty) { // Nik: this does not work under resident!
+ if (!attrInfos.isEmpty) {
attributed.attributes = attrInfos
- defn.mods setAttr List();
}
}
+ defn.mods setAttr List();
}