KT-27565 fix

This commit is contained in:
Dmitriy Novozhilov
2019-02-21 13:07:56 +03:00
parent cd2b8839b4
commit 3e147af3c0
7 changed files with 27 additions and 8 deletions
@@ -11,8 +11,11 @@ public interface Runnable {
// FILE: k.kt
fun fail() {
<!OVERLOAD_RESOLUTION_AMBIGUITY!>foo<!>({ }, { })
foo({ }, { })
foo(::bar, { })
}
fun foo(f: Runnable, selector: () -> Unit) {}
fun foo(func1: () -> Unit, func2: () -> Unit) {}
fun bar() {}
@@ -1,5 +1,6 @@
package
public fun bar(): kotlin.Unit
public fun fail(): kotlin.Unit
public fun foo(/*0*/ func1: () -> kotlin.Unit, /*1*/ func2: () -> kotlin.Unit): kotlin.Unit
public fun foo(/*0*/ f: Runnable, /*1*/ selector: () -> kotlin.Unit): kotlin.Unit