summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/interactive/Global.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/interactive/Global.scala b/src/compiler/scala/tools/nsc/interactive/Global.scala
index a563b25f44..a816413295 100644
--- a/src/compiler/scala/tools/nsc/interactive/Global.scala
+++ b/src/compiler/scala/tools/nsc/interactive/Global.scala
@@ -656,7 +656,7 @@ self =>
* Since the IDE rechecks units several times in the same run, these tests
* are disabled by always returning true here.
*/
- override def canRedefine(sym: Symbol) = true
+ override def canRedefine(sym: Symbol) = sym.sourceFile ne null
def typeCheck(unit: CompilationUnit): Unit = {
activeLocks = 0