[FIR] Implement SAM candidates discrimination

This commit is contained in:
Mikhail Glukhikh
2020-01-28 18:26:30 +03:00
parent c37a2d3dc3
commit 3f95ac341c
9 changed files with 37 additions and 12 deletions
@@ -11,8 +11,8 @@ public interface Runnable {
// FILE: k.kt
fun fail() {
<!AMBIGUITY!>foo<!>({ }, { })
<!AMBIGUITY!>foo<!>(::bar, { })
foo({ }, { })
foo(::bar, { })
}
fun foo(f: Runnable, selector: () -> Unit) {}
@@ -7,4 +7,4 @@ object X2
fun <T1> foo(x: T1, f: (T1) -> T1) = X1
fun <T2> foo(xf: () -> T2, f: (T2) -> T2) = X2
val test: X2 = <!AMBIGUITY!>foo<!>({ 0 }, { it -> it + 1 })
val test: X2 = foo({ 0 }, { it -> it + 1 })
@@ -21,6 +21,6 @@ interface B {
interface C : B, Other
fun test(c: C) {
c.<!AMBIGUITY!>pluginManagement<!> {
c.pluginManagement {
}
}