summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHubert Plociniczak <hubert.plociniczak@epfl.ch>2009-11-10 11:38:16 +0000
committerHubert Plociniczak <hubert.plociniczak@epfl.ch>2009-11-10 11:38:16 +0000
commitdcc8d01366ae5bc390e15feee6ac58f3830d347a (patch)
tree5702cd1258ba9178df69464f5602e9881e2318e3
parent572adfa2f5a94e2886f02031af56021fe72f60b8 (diff)
downloadscala-dcc8d01366ae5bc390e15feee6ac58f3830d347a.tar.gz
scala-dcc8d01366ae5bc390e15feee6ac58f3830d347a.tar.bz2
scala-dcc8d01366ae5bc390e15feee6ac58f3830d347a.zip
Fixed one of the issues in the BuildManager men...
Fixed one of the issues in the BuildManager mentioned in #2590, where adding a missing reference wasn't causing compilation of the dependent files. Still, the solution to the whole ticket requires some changes to the scala plugin itself.
-rw-r--r--src/compiler/scala/tools/nsc/interactive/RefinedBuildManager.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/interactive/RefinedBuildManager.scala b/src/compiler/scala/tools/nsc/interactive/RefinedBuildManager.scala
index 41bb2ecabf..9317758498 100644
--- a/src/compiler/scala/tools/nsc/interactive/RefinedBuildManager.scala
+++ b/src/compiler/scala/tools/nsc/interactive/RefinedBuildManager.scala
@@ -197,6 +197,8 @@ class RefinedBuildManager(val settings: Settings) extends Changes with BuildMana
invalidate(file, "it references changed class", change)
case Changed(Definition(name)) if (refs(name)) =>
invalidate(file, "it references changed definition", change)
+ case Added(Definition(name)) if (refs(name)) =>
+ invalidate(file, "it references added definition", change)
case _ => ()
}
}