Check 'isDirty' for resolved calls replaced with check 'hasUnresolvedArguments' for call

Don't report 'cannotCompleteResolve' error if some arguments are unresolved (like 'ambiguity')
This commit is contained in:
Svetlana Isakova
2014-05-20 16:59:52 +04:00
parent a3e306b820
commit b2c2e1811c
6 changed files with 68 additions and 65 deletions
@@ -0,0 +1,12 @@
//!DIAGNOSTICS: -UNUSED_PARAMETER
fun foo<T>(i: Int, t: T) {}
fun foo<T>(s: String, t: T) {}
fun bar(i: Int) {}
fun bar(s: String) {}
fun test() {
foo(<!UNRESOLVED_REFERENCE!>rrr<!>, 1)
bar(<!UNRESOLVED_REFERENCE!>rrr<!>)
}