Files
kotlin-fork/backend.native/tests/runtime/basic/interface0.kt
T
2017-10-20 18:25:05 +03:00

21 lines
229 B
Kotlin

package runtime.basic.interface0
import kotlin.test.*
interface A {
fun b() = c()
fun c()
}
class B(): A {
override fun c() {
println("PASSED")
}
}
@Test fun runTest() {
val a:A = B()
a.b()
}