Files
kotlin-fork/backend.native/tests/runtime/basic/interface0.kt
T
Alexander Gorshenev 268e3b26c0 A couple of new tests
for boxing
    and for body assignment in an interface
2016-11-24 17:46:16 +04:00

18 lines
184 B
Kotlin

interface A {
fun b() = c()
fun c()
}
class B(): A {
override fun c() {
println("PASSED")
}
}
fun main(args: Array<String>) {
val a:A = B()
a.b()
}