report 'ambiguity' on reference, not on the whole expression

as other type inference errors
This commit is contained in:
Svetlana Isakova
2013-09-01 21:27:14 +04:00
parent 5a8e80399e
commit c739632c57
9 changed files with 11 additions and 11 deletions
@@ -2,5 +2,5 @@ fun foo(vararg <!UNUSED_PARAMETER!>t<!> : String) = ""
fun foo(vararg <!UNUSED_PARAMETER!>t<!> : Int) = ""
fun test() {
<!OVERLOAD_RESOLUTION_AMBIGUITY!>foo()<!>
<!OVERLOAD_RESOLUTION_AMBIGUITY!>foo<!>()
}