diff options
author | Sean McDirmid <sean.mcdirmid@gmail.com> | 2008-03-02 03:30:05 +0000 |
---|---|---|
committer | Sean McDirmid <sean.mcdirmid@gmail.com> | 2008-03-02 03:30:05 +0000 |
commit | 7fa4bf6084d27eaba5d3fce2a8afd2c4ed0918ab (patch) | |
tree | 5e3d046c7a77bbdbf1f7c6be0873a2b6b4b901f1 /src/compiler | |
parent | ca2cc573acac4d97fa16cefea1cf72bf9ac0aaf4 (diff) | |
download | scala-7fa4bf6084d27eaba5d3fce2a8afd2c4ed0918ab.tar.gz scala-7fa4bf6084d27eaba5d3fce2a8afd2c4ed0918ab.tar.bz2 scala-7fa4bf6084d27eaba5d3fce2a8afd2c4ed0918ab.zip |
Fixing a bug in the IDE related to abstract val's.
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/IdeSupport.scala | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/IdeSupport.scala b/src/compiler/scala/tools/nsc/typechecker/IdeSupport.scala index f6a09e00b1..ea660e8010 100644 --- a/src/compiler/scala/tools/nsc/typechecker/IdeSupport.scala +++ b/src/compiler/scala/tools/nsc/typechecker/IdeSupport.scala @@ -206,7 +206,10 @@ trait IdeSupport extends Analyzer { val setter0 = namer.enterInScope(setter) assert(setter0 == setter) } else if (sym.hasGetter && set.isDefined) - set.get.find(sym => sym.name == nme.getterName(sym.name) && sym.isGetter) match { + set.get.find(sym0 => { + sym0.name == nme.getterName(sym.name) && + sym0.isGetter + }) match { case None => case Some(getter) => val getter0 = namer.enterInScope(getter) @@ -224,7 +227,8 @@ trait IdeSupport extends Analyzer { }; if (trees.isEmpty) NoSymbol else trees.last.symbol } if (makeNoChanges) {} - else if (!typeIsDirty && !lastTyped.isEmpty) return fakeUpdate(lastTyped) + else if (!typeIsDirty && !lastTyped.isEmpty) + return fakeUpdate(lastTyped) else if (namerTxt != NoContext && shouldBeTyped) {} else return fakeUpdate(lastTyped) val use = useTrees if (makeNoChanges) {} |