b5661ccabd
^KT-45118 Fixed
12 lines
192 B
Kotlin
Vendored
12 lines
192 B
Kotlin
Vendored
open class Foo(open val x: Boolean)
|
|
|
|
class Bar: Foo(false) {
|
|
val y = "OK"
|
|
}
|
|
|
|
fun contract(x: Foo) = x
|
|
|
|
val temp = if (true) contract(Bar()) else Bar()
|
|
|
|
fun box(): String = (temp as Bar).y
|