8df05c6c4c
Choose member with better visibility, it's needed for proper calculation of types intersection member scope #KT-10481 Fixed
16 lines
248 B
Kotlin
Vendored
16 lines
248 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) {
|
|
<!DEBUG_INFO_SMARTCAST!>myA<!>.value = 5
|
|
}
|
|
}
|