5b4f10e698
instead of simply Array<T> #KT-1638 Fixed #KT-2163 Fixed #KT-3213 Fixed #KT-4172 Fixed #KT-5534 Fixed
13 lines
257 B
Kotlin
13 lines
257 B
Kotlin
// !CHECK_TYPE
|
|
|
|
fun test(vararg a: String) {
|
|
a checkType { it : _<Array<out String>> }
|
|
|
|
foo(a) checkType { it : _<Array<out String>> }
|
|
}
|
|
|
|
fun <T> test1(vararg t: T) {
|
|
t checkType { it : _<Array<out T>> }
|
|
}
|
|
|
|
fun <T> foo(a: Array<T>): Array<T> = a |