Files
kotlin-fork/compiler/testData/diagnostics/tests/generics/tpAsReified/GenericArrayAsReifiedArgument.fir.kt
T

20 lines
385 B
Kotlin
Vendored

// !LANGUAGE: +ProhibitNonReifiedArraysAsReifiedTypeArguments
// !DIAGNOSTICS: -UNUSED_PARAMETER
inline fun <reified T> foo() {}
fun <T> bar() {
foo<T>()
foo<Array<T>>()
foo<Array<Array<T>>>()
foo<Array<Int>>()
foo<Array<Array<Int>>>()
foo<IntArray>()
foo<List<T>>()
foo<List<Array<T>>>()
}
fun test(x: Array<String>, y: Array<*>) {
bar<Int>()
}