diff options
author | mihaylov <mihaylov@epfl.ch> | 2006-08-15 09:39:29 +0000 |
---|---|---|
committer | mihaylov <mihaylov@epfl.ch> | 2006-08-15 09:39:29 +0000 |
commit | dcc092f2adad6c87dd5972a36ebdffd64c845e1f (patch) | |
tree | 05934305fa6fa1ea277ae86c8062cb47d9834ef0 /src | |
parent | d03714058c93a7156d306b02a91762ab942eb238 (diff) | |
download | scala-dcc092f2adad6c87dd5972a36ebdffd64c845e1f.tar.gz scala-dcc092f2adad6c87dd5972a36ebdffd64c845e1f.tar.bz2 scala-dcc092f2adad6c87dd5972a36ebdffd64c845e1f.zip |
Fixed bug #669
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Typers.scala | 4 |
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(); } |