diff options
author | Martin Odersky <odersky@gmail.com> | 2005-09-28 15:53:33 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2005-09-28 15:53:33 +0000 |
commit | cc54f727041e4a0a814004ea48d70562d3602fcc (patch) | |
tree | 40327e3de988647233c742d6ea54080bf011170a /sources/scala/tools/nsc/typechecker/Typers.scala | |
parent | 9055a919a643f98e38c342d15037655dc50bca19 (diff) | |
download | scala-cc54f727041e4a0a814004ea48d70562d3602fcc.tar.gz scala-cc54f727041e4a0a814004ea48d70562d3602fcc.tar.bz2 scala-cc54f727041e4a0a814004ea48d70562d3602fcc.zip |
*** empty log message ***
Diffstat (limited to 'sources/scala/tools/nsc/typechecker/Typers.scala')
-rwxr-xr-x | sources/scala/tools/nsc/typechecker/Typers.scala | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sources/scala/tools/nsc/typechecker/Typers.scala b/sources/scala/tools/nsc/typechecker/Typers.scala index a1f1c02171..0ecbab0c53 100755 --- a/sources/scala/tools/nsc/typechecker/Typers.scala +++ b/sources/scala/tools/nsc/typechecker/Typers.scala @@ -190,6 +190,7 @@ abstract class Typers: Analyzer { value case arg => error(arg.pos, "attribute argument needs to be a constant; found: " + arg); + null }) } @@ -1078,11 +1079,7 @@ abstract class Typers: Analyzer { case Attributed(attr, defn) => val attr1 = typed(attr, AttributeClass.tpe); val defn1 = typed(defn, mode, pt); - val existing = currentRun.attributes.get(defn1.symbol) match { - case None => List() - case Some(attrs) => attrs - } - currentRun.attributes(defn1.symbol) = attrInfo(attr1) :: existing; + defn1.symbol.attributes = defn1.symbol.attributes ::: List(attrInfo(attr1)); defn1 case DocDef(comment, defn) => |