Files
kotlin-fork/compiler/testData/diagnostics/tests/varargs/varargsAndOut1.fir.kt
T

13 lines
329 B
Kotlin
Vendored

// !CHECK_TYPE
fun test(vararg a: String) {
a checkType { <!UNRESOLVED_REFERENCE!>_<!><Array<out String>>() }
foo(a) checkType { <!UNRESOLVED_REFERENCE!>_<!><Array<out String>>() }
}
fun <T> test1(vararg t: T) {
t checkType { <!UNRESOLVED_REFERENCE!>_<!><Array<out T>>() }
}
fun <T> foo(a: Array<T>): Array<T> = a