Files
kotlin-fork/compiler/testData/codegen/box/traits/traitImplGenericDelegation.kt
T
Ilya Matveev a5e4e0284e Mute some box tests for native backend
This patch mutes the following test categories:
   * Tests with java dependencies (System class,
     java stdlib, jvm-oriented annotations etc).
   * Coroutines tests.
   * Reflection tests.
   * Tests with an inheritance from the standard
     collections.
2017-03-10 19:59:37 +03:00

24 lines
428 B
Kotlin
Vendored

// IGNORE_BACKEND: NATIVE
interface A<T, U : Number, V : Any> {
fun foo(t: T, u: U): V? {
return null
}
}
interface B<T, V : Any> : A<T, Int, V>
class C : B<String, Runnable> {
override fun foo(t: String, u: Int): Runnable? {
return super.foo(t, u)
}
}
interface Runnable {
fun run(): Unit
}
fun box(): String {
val x = C().foo("", 0)
return if (x == null) "OK" else "Fail: $x"
}