From dcc092f2adad6c87dd5972a36ebdffd64c845e1f Mon Sep 17 00:00:00 2001 From: mihaylov Date: Tue, 15 Aug 2006 09:39:29 +0000 Subject: Fixed bug #669 --- src/compiler/scala/tools/nsc/typechecker/Typers.scala | 4 ++-- 1 file 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(); } -- cgit v1.2.3