diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2009-03-24 10:27:57 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2009-03-24 10:27:57 +0000 |
commit | 5a820a97086a0b35efe1c9f91e8e4b9cc3578ebd (patch) | |
tree | 94854a503433b606cafc29ddfc4f248773fc578b | |
parent | 00c9c7e85cf3bcc6aabe367cf56054fef367a3db (diff) | |
download | scala-5a820a97086a0b35efe1c9f91e8e4b9cc3578ebd.tar.gz scala-5a820a97086a0b35efe1c9f91e8e4b9cc3578ebd.tar.bz2 scala-5a820a97086a0b35efe1c9f91e8e4b9cc3578ebd.zip |
Fixed #1761, function literal symbols are now e...
Fixed #1761, function literal symbols are now erased by resetAttrs.
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/Trees.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/Trees.scala b/src/compiler/scala/tools/nsc/ast/Trees.scala index 65510ea363..b1a0f4c49e 100644 --- a/src/compiler/scala/tools/nsc/ast/Trees.scala +++ b/src/compiler/scala/tools/nsc/ast/Trees.scala @@ -1748,7 +1748,7 @@ trait Trees { for (stat <- body) if (stat.isDef) erasedSyms.addEntry(stat.symbol) super.traverse(tree) - case _: DefTree => + case _: DefTree | Function(_, _) => erasedSyms.addEntry(tree.symbol) tree.symbol = NoSymbol tree.tpe = null |