summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHubert Plociniczak <hubert.plociniczak@epfl.ch>2009-11-11 15:10:06 +0000
committerHubert Plociniczak <hubert.plociniczak@epfl.ch>2009-11-11 15:10:06 +0000
commit074281bafe2cf07f99a2a478f0cb32cce30c87f6 (patch)
tree0a3178134ce269d46a2a917132c50b48d7dae336 /src
parent446edd332885bf1a26259c220c7880aef59e1163 (diff)
downloadscala-074281bafe2cf07f99a2a478f0cb32cce30c87f6.tar.gz
scala-074281bafe2cf07f99a2a478f0cb32cce30c87f6.tar.bz2
scala-074281bafe2cf07f99a2a478f0cb32cce30c87f6.zip
Partial fix for #2581.
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/interactive/RefinedBuildManager.scala9
1 files changed, 9 insertions, 0 deletions
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)