analyze function arguments after completion for unresolved and ambiguity cases

This commit is contained in:
svtk
2013-11-26 17:42:39 +04:00
committed by Svetlana Isakova
parent cde36adbdc
commit b178c79573
5 changed files with 53 additions and 3 deletions
@@ -0,0 +1,14 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE
package d
fun bar() {
val i: Int? = 42
if (i != null) {
<!OVERLOAD_RESOLUTION_AMBIGUITY!>doSmth1<!> {
val x = i + 1
}
}
}
fun doSmth1(f: ()->Unit) {}
fun doSmth1(g: (Int)->Unit) {}