diff options
author | Miles Sabin <miles@milessabin.com> | 2009-05-27 08:34:17 +0000 |
---|---|---|
committer | Miles Sabin <miles@milessabin.com> | 2009-05-27 08:34:17 +0000 |
commit | e01b0f41ef7cc48df2efc7de84f7739e07970751 (patch) | |
tree | 8ac0485fafa150513cbb10a4ee0be324ceab0cb6 | |
parent | 21733eb9fd9a97c2a1ab7f7b0e313166fdeb9b6c (diff) | |
download | scala-e01b0f41ef7cc48df2efc7de84f7739e07970751.tar.gz scala-e01b0f41ef7cc48df2efc7de84f7739e07970751.tar.bz2 scala-e01b0f41ef7cc48df2efc7de84f7739e07970751.zip |
Reset the tree as well ...
-rwxr-xr-x | src/compiler/scala/tools/nsc/interactive/Global.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/interactive/Global.scala b/src/compiler/scala/tools/nsc/interactive/Global.scala index 0ad7c1b5aa..fe9b799796 100755 --- a/src/compiler/scala/tools/nsc/interactive/Global.scala +++ b/src/compiler/scala/tools/nsc/interactive/Global.scala @@ -162,6 +162,8 @@ self => unit.contexts.clear() ResetAttrs.traverse(unit.body) currentTyperRun.enterNames(unit) + unit.body = EmptyTree // Not sure if this is correct, but it makes the + // observable behaviour more stable unit.status = JustParsed } |