Change Signature: Search & process as-property usages of Java methods (This ixes some muted tests on Change Signature for properties).

Improve test data
This commit is contained in:
Alexey Sedunov
2015-10-21 18:24:10 +03:00
committed by Alexey Sedunov
parent ad0c12935b
commit 8d3296e08d
23 changed files with 283 additions and 116 deletions
@@ -4,23 +4,32 @@ open class A {
open var String.<caret>p: Int = 1
}
class B: A() {
override var String.p: Int = 2
class AA : A() {
override var String.p: Int = 1
}
class B : J() {
override var String.p: Int = 1
}
fun test() {
with(A()) {
val t = "".p
"".p = 1
"".p = 3
}
with(AA()) {
val t = "".p
"".p = 3
}
with(J()) {
val t = "".p
"".p = 3
}
with(B()) {
val t = "".p
"".p = 2
}
with(J()) {
val t = getP("")
setP("", 3)
"".p = 3
}
}