27ff2d7816
#KT-31227 fixed
20 lines
493 B
Kotlin
Vendored
20 lines
493 B
Kotlin
Vendored
// !LANGUAGE: +ProhibitNonReifiedArraysAsReifiedTypeArguments
|
|
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
inline fun <reified T> foo() {}
|
|
|
|
fun <T> bar() {
|
|
foo<<!TYPE_PARAMETER_AS_REIFIED!>T<!>>()
|
|
foo<<!TYPE_PARAMETER_AS_REIFIED_ARRAY!>Array<T><!>>()
|
|
foo<<!TYPE_PARAMETER_AS_REIFIED_ARRAY!>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>()
|
|
}
|