Files
kotlin-fork/backend.native/tests/external/codegen/blackbox/fakeOverride/function.kt
T
Ilya Matveev 1b553ebfaf backend/tests: Add blackbox tests from Kotlin JVM
Added tests from testData/codegen/box directory. There are blackbox tests
in other directories and they are to be added.
2017-01-20 14:04:04 +03:00

36 lines
476 B
Kotlin

interface T {
fun foo(): Unit
}
open class A : T {
override fun foo(): Unit {}
}
class B : A(), T
class C : T, A()
interface U : T
class D : U, A()
class E : A(), U
class F : U, T, A()
class G : T, U, A()
class H : U, A(), T
class I : T, A(), U
class J : A(), U, T
class K : A(), T, U
fun box(): String {
B().foo()
C().foo()
D().foo()
E().foo()
F().foo()
G().foo()
H().foo()
I().foo()
J().foo()
K().foo()
return "OK"
}