[Native][Tests] Move existing CExport tests under the InterfaceV1 dir
To avoid collisions with the future InterfaceNone tests
This commit is contained in:
committed by
Space Team
parent
06c0977408
commit
dd25130464
@@ -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")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user