don't report unnecessary smart cast on receiver

This commit is contained in:
Svetlana Isakova
2013-12-03 14:19:11 +04:00
parent 33c04bde9a
commit 46b77f4472
6 changed files with 20 additions and 7 deletions
@@ -183,7 +183,7 @@ fun returnFunctionLiteral(a: Any?): Function0<Int> =
fun mergeAutocasts(a: Any?) {
if (a is String || a is Int) {
a.<!UNRESOLVED_REFERENCE!>compareTo<!>("")
<!DEBUG_INFO_AUTOCAST!>a<!>.toString()
a.toString()
}
if (a is Int || a is String) {
a.<!UNRESOLVED_REFERENCE!>compareTo<!>("")