report 'ambiguity' on reference, not on the whole expression
as other type inference errors
This commit is contained in:
@@ -12,7 +12,7 @@ public class A {
|
||||
// FILE: test.kt
|
||||
|
||||
fun main() {
|
||||
A.<!OVERLOAD_RESOLUTION_AMBIGUITY!>foo { "Hello!" }<!>
|
||||
A.<!OVERLOAD_RESOLUTION_AMBIGUITY!>foo<!> { "Hello!" }
|
||||
A.foo(Runnable { "Hello!" })
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user