don't consider calls to methods with the same name as a property to be calls to accessors of that property

#KT-12813 Fixed
This commit is contained in:
Dmitry Jemerov
2016-07-14 14:04:03 +02:00
parent 14037f099c
commit 5380b63522
4 changed files with 29 additions and 1 deletions
@@ -0,0 +1,16 @@
// PSI_ELEMENT: org.jetbrains.kotlin.psi.KtProperty
// OPTIONS: usages
class P
interface C {
val <caret>p: P // set caret at "p" and try find usages
fun p(param: Any)
}
fun C.usageCorrect() {
println(p)
}
fun C.usageIncorrect() {
p("ok")
}
@@ -0,0 +1 @@
Value read 11 println(p)