6e15ee8fea
synthetic_select<() -> T>(::foo) form allows to select better candidate than synthetic_select(::foo) with expect type `() -> T`
11 lines
284 B
Kotlin
Vendored
11 lines
284 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
fun foo(vararg ii: Int) {}
|
|
fun foo(vararg ss: String) {}
|
|
fun foo(i: Int) {}
|
|
|
|
val fn1: (Int) -> Unit = ::foo
|
|
val fn2: (IntArray) -> Unit = ::foo
|
|
val fn3: (Int, Int) -> Unit = ::<!UNRESOLVED_REFERENCE!>foo<!>
|
|
val fn4: (Array<String>) -> Unit = ::foo
|