diff options
-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 } |