Files
Sergey Bogolepov dd25130464 [Native][Tests] Move existing CExport tests under the InterfaceV1 dir
To avoid collisions with the future InterfaceNone tests
2024-02-20 15:23:22 +00:00

21 lines
407 B
Kotlin
Vendored

interface Foo {
fun Any.extfoo()
}
class CFoo1:Foo {
override fun Any.extfoo() {
when(this) {
is CFoo1 -> println("CFoo1::extfoo")
is CFoo2 -> println("CFoo2::extfoo")
is Int -> println("Int::extfoo")
}
}
fun callMe(arg: Any) = arg.extfoo()
}
class CFoo2:Foo {
override fun Any.extfoo() {
TODO("Not yet implemented")
}
}