report 'ambiguity' on reference, not on the whole expression
as other type inference errors
This commit is contained in:
@@ -3,9 +3,9 @@ fun main(j : C, s : Array<String?>) {
|
||||
j.from()
|
||||
j.from("")
|
||||
j.from("", "")
|
||||
j.<!OVERLOAD_RESOLUTION_AMBIGUITY!>from("", "", "")<!>
|
||||
j.<!OVERLOAD_RESOLUTION_AMBIGUITY!>from<!>("", "", "")
|
||||
|
||||
j.<!OVERLOAD_RESOLUTION_AMBIGUITY!>from("", *s)<!> // This should not be an ambiguity, see KT-1842
|
||||
j.<!OVERLOAD_RESOLUTION_AMBIGUITY!>from<!>("", *s) // This should not be an ambiguity, see KT-1842
|
||||
j.from(*s)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user