summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2011-09-22 15:51:59 +0000
committerMartin Odersky <odersky@gmail.com>2011-09-22 15:51:59 +0000
commitb38f2a1df3ec5ae646575a5078aaeb649a18a413 (patch)
treefda960aacf18ccee528bcf35541767a9ef93df8e /src/compiler
parentc0aebb12202d4a025de7a627987542a3d3a20277 (diff)
downloadscala-b38f2a1df3ec5ae646575a5078aaeb649a18a413.tar.gz
scala-b38f2a1df3ec5ae646575a5078aaeb649a18a413.tar.bz2
scala-b38f2a1df3ec5ae646575a5078aaeb649a18a413.zip
Corrected resetErrorBits in Trees
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/ast/Trees.scala4
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)