Files
kotlin-fork/idea/testData/refactoring/changeSignature/AddPropertyReceiverBefore.kt
T
2015-11-02 15:15:39 +03:00

33 lines
378 B
Kotlin
Vendored

open class A {
open var <caret>p: Int = 1
}
class AA : A() {
override var p: Int = 1
}
class B : J() {
override var p: Int = 1
}
fun test() {
with(A()) {
val t = p
p = 3
}
with(AA()) {
val t = p
p = 3
}
with(J()) {
val t = p
p = 3
}
with(B()) {
val t = p
p = 3
}
}