summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2011-11-06 15:52:54 +0000
committerMartin Odersky <odersky@gmail.com>2011-11-06 15:52:54 +0000
commit152be020c41b6ea54323ff3055e1b3adc7fbd1b2 (patch)
tree06887b74def3bd256d31cee8a9fbdedded929040 /src/compiler
parent761faecd9f6cd2cd230535cda0e1220da884a18f (diff)
downloadscala-152be020c41b6ea54323ff3055e1b3adc7fbd1b2.tar.gz
scala-152be020c41b6ea54323ff3055e1b3adc7fbd1b2.tar.bz2
scala-152be020c41b6ea54323ff3055e1b3adc7fbd1b2.zip
Fixed askLinkPos problem in reported by failing...
Fixed askLinkPos problem in reported by failing test in presentation/akka.
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/interactive/Global.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/interactive/Global.scala b/src/compiler/scala/tools/nsc/interactive/Global.scala
index 03f8e9d92e..7fea76c7b1 100644
--- a/src/compiler/scala/tools/nsc/interactive/Global.scala
+++ b/src/compiler/scala/tools/nsc/interactive/Global.scala
@@ -153,6 +153,7 @@ class Global(settings: Settings, reporter: Reporter, projectName: String = "")
protected[interactive] def getUnit(s: SourceFile): Option[RichCompilationUnit] = {
toBeRemoved.synchronized {
for (f <- toBeRemoved) {
+ informIDE("removed: "+s)
unitOfFile -= f
allSources = allSources filter (_.file != f)
}
@@ -730,7 +731,7 @@ class Global(settings: Settings, reporter: Reporter, projectName: String = "")
val originalTypeParams = sym.owner.typeParams
parseAndEnter(unit)
val pre = adaptToNewRunMap(ThisType(sym.owner))
- val newsym = pre.decl(sym.name) filter { alt =>
+ val newsym = pre.typeSymbol.info.decl(sym.name) filter { alt =>
sym.isType || {
try {
val tp1 = pre.memberType(alt) onTypeError NoType