Files
kotlin-fork/compiler/testData/diagnostics/tests/callableReference/resolve/callableReferenceToVarargWithOverload.kt
T
2020-01-23 18:56:00 +03:00

17 lines
283 B
Kotlin
Vendored

// !LANGUAGE: +NewInference
// !DIAGNOSTICS: -UNUSED_PARAMETER
import kotlin.reflect.KFunction2
class Foo
fun test(fn: KFunction2<Foo, Array<out String>, String>) = null
fun Foo.bar(vararg x: String) = ""
fun Foo.bar(vararg x: Int) = ""
fun actualTest() {
test(Foo::bar)
}