From 074281bafe2cf07f99a2a478f0cb32cce30c87f6 Mon Sep 17 00:00:00 2001 From: Hubert Plociniczak Date: Wed, 11 Nov 2009 15:10:06 +0000 Subject: Partial fix for #2581. --- .../scala/tools/nsc/interactive/RefinedBuildManager.scala | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') diff --git a/src/compiler/scala/tools/nsc/interactive/RefinedBuildManager.scala b/src/compiler/scala/tools/nsc/interactive/RefinedBuildManager.scala index 9317758498..8f36f1beec 100644 --- a/src/compiler/scala/tools/nsc/interactive/RefinedBuildManager.scala +++ b/src/compiler/scala/tools/nsc/interactive/RefinedBuildManager.scala @@ -117,6 +117,15 @@ class RefinedBuildManager(val settings: Settings) extends Changes with BuildMana // a new top level definition, no need to process } } + // Create a change for the top level classes that were removed + val removed = definitions(src) remove ((s: Symbol) => + syms.find(_.fullNameString == s.fullNameString) match { + case None => false + case _ => true + }) + for (sym <- removed) { + changesOf(sym) = List(removeChangeSet(sym)) + } } } println("Changes: " + changesOf) -- cgit v1.2.3