report 'ambiguity' on reference, not on the whole expression
as other type inference errors
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user