Added tests on resolved call for 'this'
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class A {
|
||||
fun foo() {
|
||||
<caret>this@A.foo()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
class A {
|
||||
fun foo() {
|
||||
<caret>this@A.foo()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Resolved call:
|
||||
|
||||
Explicit receiver kind = NO_EXPLICIT_RECEIVER
|
||||
This object = NO_RECEIVER
|
||||
Receiver argument = NO_RECEIVER
|
||||
@@ -0,0 +1,5 @@
|
||||
class A {
|
||||
fun foo() {
|
||||
<caret>this.foo()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
class A {
|
||||
fun foo() {
|
||||
<caret>this.foo()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Resolved call:
|
||||
|
||||
Explicit receiver kind = NO_EXPLICIT_RECEIVER
|
||||
This object = NO_RECEIVER
|
||||
Receiver argument = NO_RECEIVER
|
||||
@@ -0,0 +1,5 @@
|
||||
class A {
|
||||
fun foo() {}
|
||||
}
|
||||
|
||||
fun A.bar() = <caret>this.foo()
|
||||
@@ -0,0 +1,12 @@
|
||||
class A {
|
||||
fun foo() {}
|
||||
}
|
||||
|
||||
fun A.bar() = <caret>this.foo()
|
||||
|
||||
|
||||
Resolved call:
|
||||
|
||||
Explicit receiver kind = NO_EXPLICIT_RECEIVER
|
||||
This object = NO_RECEIVER
|
||||
Receiver argument = NO_RECEIVER
|
||||
Reference in New Issue
Block a user