d3ff8c12a4
Known issue: can't use same approach for modifying Java dialogs behaviour
28 lines
403 B
Kotlin
Vendored
28 lines
403 B
Kotlin
Vendored
// PSI_ELEMENT: org.jetbrains.kotlin.psi.KtProperty
|
|
// CHECK_SUPER_METHODS_YES_NO_DIALOG: no
|
|
// OPTIONS: usages
|
|
open class A {
|
|
open var p: Int = 1
|
|
}
|
|
|
|
class AA : A() {
|
|
override var p: Int = 1
|
|
}
|
|
|
|
class B : J() {
|
|
override var <caret>p: Int = 1
|
|
}
|
|
|
|
fun test() {
|
|
val t = A().p
|
|
A().p = 1
|
|
|
|
val t = AA().p
|
|
AA().p = 1
|
|
|
|
val t = J().p
|
|
J().p = 1
|
|
|
|
val t = B().p
|
|
B().p = 1
|
|
} |