Files
kotlin-fork/compiler/testData/diagnostics/tests/callableReference/resolve/callableReferenceToVarargWithOverload.kt
T

17 lines
272 B
Kotlin
Vendored

// FIR_IDENTICAL
// !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)
}