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.
19 lines
595 B
Kotlin
Vendored
19 lines
595 B
Kotlin
Vendored
// TODO: muted automatically, investigate should it be ran for JS or not
|
|
// IGNORE_BACKEND: JS, NATIVE
|
|
|
|
// WITH_RUNTIME
|
|
|
|
inline fun <reified T> jaggedArrayOfNulls(): Array<Array<T>?> = arrayOfNulls<Array<T>>(1)
|
|
|
|
fun box(): String {
|
|
val x1 = jaggedArrayOfNulls<String>().javaClass.simpleName
|
|
if (x1 != "String[][]") return "fail1: $x1"
|
|
|
|
val x2 = jaggedArrayOfNulls<Array<String>>().javaClass.simpleName
|
|
if (x2 != "String[][][]") return "fail2: $x2"
|
|
|
|
val x3 = jaggedArrayOfNulls<IntArray>().javaClass.simpleName
|
|
if (x3 != "int[][][]") return "fail3: $x3"
|
|
return "OK"
|
|
}
|