Files
kotlin-fork/compiler/testData/diagnostics/tests/varargs/AmbiguousVararg.kt
T
Svetlana Isakova c739632c57 report 'ambiguity' on reference, not on the whole expression
as other type inference errors
2013-09-03 13:09:15 +04:00

6 lines
168 B
Kotlin
Vendored

fun foo(vararg <!UNUSED_PARAMETER!>t<!> : String) = ""
fun foo(vararg <!UNUSED_PARAMETER!>t<!> : Int) = ""
fun test() {
<!OVERLOAD_RESOLUTION_AMBIGUITY!>foo<!>()
}