Files
kotlin-fork/backend.native/tests/codegen/localClass/localHierarchy.kt
T
2017-10-20 18:25:05 +03:00

19 lines
281 B
Kotlin

package codegen.localClass.localHierarchy
import kotlin.test.*
fun foo(s: String): String {
open class Local {
fun f() = s
}
open class Derived: Local() {
fun g() = f()
}
return Derived().g()
}
@Test fun runTest() {
println(foo("OK"))
}