Explicit this inspection: fix false negative with local variable

#KT-30136 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-07-10 13:44:05 +09:00
committed by Mikhail Glukhikh
parent eb469b924f
commit 0ec18b4a33
7 changed files with 83 additions and 1 deletions
@@ -0,0 +1,14 @@
// PROBLEM: none
class Some {
operator fun invoke() {}
}
class Other {
fun foo() {
val a = Some()
<caret>this.a()
a()
}
fun a() {}
}
@@ -0,0 +1,9 @@
class Foo {
fun foo() {
val a = 1
<caret>this.a()
}
fun a() {
}
}
@@ -0,0 +1,9 @@
class Foo {
fun foo() {
val a = 1
<caret>a()
}
fun a() {
}
}
@@ -0,0 +1,9 @@
class Foo {
fun foo() {
fun a() {
}
<caret>this.a
}
val a = 1
}
@@ -0,0 +1,9 @@
class Foo {
fun foo() {
fun a() {
}
<caret>a
}
val a = 1
}