summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)