Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/intersectionScope/moreSpecificSetter.fir.kt
T

16 lines
221 B
Kotlin
Vendored

open class A {
open var value: Int = 4
protected set
}
class MutableA : A() {
override var value: Int = 4
public set
}
fun test(myA: A) {
if (myA is MutableA) {
myA.value = 5
}
}