Files
kotlin-fork/compiler/testData/diagnostics/tests/inference/commonSystem/theSameFunctionInArgs.kt
T
2015-10-14 18:36:53 +03:00

9 lines
199 B
Kotlin
Vendored

// !CHECK_TYPE
@Suppress("UNCHECKED_CAST")
fun <T> arrayOf(vararg t : T) : Array<T> = t as Array<T>
fun test() {
val array = arrayOf(arrayOf(1))
array checkType { _<Array<Array<Int>>>() }
}