Files
kotlin-fork/idea/testData/slicer/inflow/overrideProperty.kt
T
2020-02-13 07:40:34 +02:00

15 lines
195 B
Kotlin
Vendored

// FLOW: IN
open class Base {
open var prop: Int = 0
}
class Derived : Base() {
override var prop: Int = 1
}
fun foo(b: Base, d: Derived) {
b.prop = 10
val <caret>v = d.prop
}