Make quick evaluate work on receiver in qualified expressions (KT-13269)

(cherry picked from commit 970ac5a)

 #KT-13269 Fixed
This commit is contained in:
Nikolay Krasko
2016-08-05 15:09:24 +03:00
committed by Nikolay Krasko
parent 7325baa06a
commit 7a4d20b4cf
10 changed files with 108 additions and 26 deletions
@@ -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
View File
@@ -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()