blob: c838b44cec1db07bfb8b7cda7bd6d21e8d327a2a [file]
// TARGET_BACKEND: JVM
// WITH_STDLIB
open class A {
fun Foo() {
print("Fop")
}
}
class B() : A()
class C() : A()
fun box(): String {
var test : A = B()
println((test as B).toString())
listOf(1,2 ,3).forEach { it ->
test = C()
}
test.Foo()
return "OK"
}