Skip to content

Commit 074281b

Browse files
author
Hubert Plociniczak
committed
Partial fix for scala#2581.
1 parent 446edd3 commit 074281b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/compiler/scala/tools/nsc/interactive/RefinedBuildManager.scala

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,15 @@ class RefinedBuildManager(val settings: Settings) extends Changes with BuildMana
117117
// a new top level definition, no need to process
118118
}
119119
}
120+
// Create a change for the top level classes that were removed
121+
val removed = definitions(src) remove ((s: Symbol) =>
122+
syms.find(_.fullNameString == s.fullNameString) match {
123+
case None => false
124+
case _ => true
125+
})
126+
for (sym <- removed) {
127+
changesOf(sym) = List(removeChangeSet(sym))
128+
}
120129
}
121130
}
122131
println("Changes: " + changesOf)

0 commit comments

Comments
 (0)