Files
kotlin-fork/compiler/testData/diagnostics/tests/inference/completeInferenceIfManyFailed.kt
T
2012-10-19 19:42:54 +04:00

16 lines
311 B
Kotlin

package d
fun <T: Any> joinT(<!UNUSED_PARAMETER!>x<!>: Int, vararg <!UNUSED_PARAMETER!>a<!>: T): T? {
return null
}
fun <T: Any> joinT(<!UNUSED_PARAMETER!>x<!>: Any, <!UNUSED_PARAMETER!>y<!>: T): T? {
return null
}
fun test() {
val x2 = joinT(<!NON_VARARG_SPREAD!>*<!>1, "2")
x2 : String?
}