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
+1 -1
View File
@@ -20,7 +20,7 @@ fun test(a: A?) {
}
if (a is B? && a is C?) {
<info descr="Smart cast to B?">a</info><info>?.</info>bar()
<info descr="Smart cast to B">a</info><info>?.</info>bar()
}
a<info>?.</info>foo()