Make quick evaluate work on receiver in qualified expressions (KT-13269)
(cherry picked from commit 970ac5a) #KT-13269 Fixed
This commit is contained in:
committed by
Nikolay Krasko
parent
7325baa06a
commit
7a4d20b4cf
@@ -0,0 +1,11 @@
|
||||
class Derived: Base() {
|
||||
fun test() {
|
||||
super.<caret>test()
|
||||
}
|
||||
}
|
||||
|
||||
open class Base {
|
||||
fun test() {}
|
||||
}
|
||||
|
||||
// EXPECTED: null
|
||||
@@ -4,4 +4,4 @@ class MyClass {
|
||||
}
|
||||
}
|
||||
|
||||
// EXPECTED: null
|
||||
// EXPECTED: this
|
||||
@@ -0,0 +1,7 @@
|
||||
class MyClass {
|
||||
fun test() {
|
||||
<caret>this.test()
|
||||
}
|
||||
}
|
||||
|
||||
// EXPECTED: this
|
||||
@@ -0,0 +1,9 @@
|
||||
fun one() = "one"
|
||||
fun String.two() = this + "two"
|
||||
fun String.three() = this + "three"
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val s = <caret>one().two().three() // Can't select 'one()' with Alt in debugger, only 'one().two()' and 'one().two().three()' are available
|
||||
}
|
||||
|
||||
// EXPECTED: one()
|
||||
@@ -0,0 +1,11 @@
|
||||
class Derived: Base() {
|
||||
fun test() {
|
||||
super.<caret>test()
|
||||
}
|
||||
}
|
||||
|
||||
open class Base {
|
||||
fun test() {}
|
||||
}
|
||||
|
||||
// EXPECTED: super.test()
|
||||
+1
-1
@@ -4,4 +4,4 @@ class MyClass {
|
||||
}
|
||||
}
|
||||
|
||||
// EXPECTED: this.test()
|
||||
// EXPECTED: this
|
||||
@@ -0,0 +1,7 @@
|
||||
class MyClass {
|
||||
fun test() {
|
||||
this.<caret>test()
|
||||
}
|
||||
}
|
||||
|
||||
// EXPECTED: this.test()
|
||||
Reference in New Issue
Block a user