stop resolution if ambiguity is found

This commit is contained in:
Svetlana Isakova
2012-04-06 20:39:16 +04:00
parent f6d8771f79
commit 2de69d8cd8
2 changed files with 24 additions and 2 deletions
@@ -0,0 +1,20 @@
package c
trait B {
fun bar() {}
}
class C() {
fun bar() {
}
}
fun test(a : Any?) {
if (a is B) {
if (a is C) {
a.<!OVERLOAD_RESOLUTION_AMBIGUITY!>bar()<!>;
}
}
}
fun Any?.bar() {}