Tooltip displayed for var is def instead of var
See attached screenshots. The first one displays tooltip of a var at usage site. The other one at definition site. The former is wrong.
Note that semantic highlighting is correct in this, probably due to fix described in #1000958. I guess you need the same kind of fix applied to tooltips.
Note that semantic highlighting is correct in this, probably due to fix described in #1000958. I guess you need the same kind of fix applied to tooltips.
Leave a comment
on 2014-02-04 14:36 *
By skyluc
Component set to Editor
Eclipse version changed from Helios to Kepler - Eclipse 4.3
Operative system set to All
Type set to Defect
Version changed from 2.1.0-nightly-210 to 3.0.2-210
Status changed from New to Accepted
Reproduced in 4.0.x on 2.10.4-SNAPSHOT.
Self contained test case:
The tooltip on
Self contained test case:
abstract class TooltipAbstractVar {
var aaa: Int = 3
}
class TooltipVar extends TooltipAbstractVar {
def foo {
println(aaa)
}
}
The tooltip on
aaa
in TooltipAbstractVar
is fine, but it is displayed as a def
in TooltipVar
.
Fix tooltip message for 'var's
Distinguish var from def by checking if the owner has both a setter and
a getter with the same name
Fix #1001007
Branch: master
Commit: scala-ide:7928e626d3
Distinguish var from def by checking if the owner has both a setter and
a getter with the same name
Fix #1001007
Branch: master
Commit: scala-ide:7928e626d3