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
@@ -6,11 +6,11 @@ fun foo() {
bar(<!TYPE_MISMATCH!>x<!>)
if (x != 2) {
if (x == null) return
2+<!SYNTAX!><!>
2<!OVERLOAD_RESOLUTION_AMBIGUITY!>+<!><!SYNTAX!><!>
}
else {
if (<!SENSELESS_COMPARISON!>x == null<!>) return
2+<!SYNTAX!><!>
2<!OVERLOAD_RESOLUTION_AMBIGUITY!>+<!><!SYNTAX!><!>
}
bar(x)
}