[Native][Tests] Move existing CExport tests under the InterfaceV1 dir

To avoid collisions with the future InterfaceNone tests
This commit is contained in:
Sergey Bogolepov
2024-02-16 11:03:41 +02:00
committed by Space Team
parent 06c0977408
commit dd25130464
10 changed files with 62 additions and 61 deletions
@@ -0,0 +1,21 @@
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")
}
}