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
@@ -1,7 +1,7 @@
// FILE: checkAmbiguityBetweenRootAndPackage.kt
package test
val t = <!OVERLOAD_RESOLUTION_AMBIGUITY!>testFun()<!>
val t = <!OVERLOAD_RESOLUTION_AMBIGUITY!>testFun<!>()
// FILE: checkAmbiguityBetweenRootAndPackageRoot.kt
fun testFun() = 12
@@ -12,7 +12,7 @@ class C() {
fun test(a : Any?) {
if (a is B) {
if (a is C) {
a.<!OVERLOAD_RESOLUTION_AMBIGUITY!>bar()<!>;
a.<!OVERLOAD_RESOLUTION_AMBIGUITY!>bar<!>();
}
}
}