diff options
author | Martin Odersky <odersky@gmail.com> | 2011-09-22 15:51:59 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2011-09-22 15:51:59 +0000 |
commit | b38f2a1df3ec5ae646575a5078aaeb649a18a413 (patch) | |
tree | fda960aacf18ccee528bcf35541767a9ef93df8e | |
parent | c0aebb12202d4a025de7a627987542a3d3a20277 (diff) | |
download | scala-b38f2a1df3ec5ae646575a5078aaeb649a18a413.tar.gz scala-b38f2a1df3ec5ae646575a5078aaeb649a18a413.tar.bz2 scala-b38f2a1df3ec5ae646575a5078aaeb649a18a413.zip |
Corrected resetErrorBits in Trees
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/Trees.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/Trees.scala b/src/compiler/scala/tools/nsc/ast/Trees.scala index 7758e37f25..1a8beef30e 100644 --- a/src/compiler/scala/tools/nsc/ast/Trees.scala +++ b/src/compiler/scala/tools/nsc/ast/Trees.scala @@ -250,7 +250,9 @@ trait Trees extends reflect.internal.Trees { self: Global => tree.symbol = NoSymbol } override def traverse(tree: Tree): Unit = { - tree.resetErrorBits() // !!! Not sure whether this is right (or matters.) + //tree.resetErrorBits() + // [Martin] I believe the commented statement above not right. errorBits reflect the invariant that a subtree is an ErrorTree. + // THhat's unaffected by resetAttrs. tree match { case _: DefTree | Function(_, _) | Template(_, _, _) => resetDef(tree) |