Unnecessary safe call is now reported in CallExpressionResolver, removed code duplication for safe call receivers

See also KT-10175
This commit is contained in:
Mikhail Glukhikh
2015-11-24 12:06:33 +03:00
parent da90c21284
commit 46f4191185
12 changed files with 33 additions and 65 deletions
@@ -29,6 +29,6 @@ import p.*
fun test(b: B?) {
if (b is C) {
b?.<!OVERLOAD_RESOLUTION_AMBIGUITY!>foo<!>("")
b<!UNNECESSARY_SAFE_CALL!>?.<!><!OVERLOAD_RESOLUTION_AMBIGUITY!>foo<!>("")
}
}