a5e4e0284e
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.
24 lines
428 B
Kotlin
Vendored
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"
|
|
}
|