J2K: no redundant type casts

#KT-6794 Fixed
This commit is contained in:
Valentin Kipyatkov
2015-03-25 20:05:37 +03:00
parent 7d92559d13
commit 555ae1ebd3
8 changed files with 79 additions and 33 deletions
@@ -0,0 +1,7 @@
class C {
void foo(Object o) {
if (o instanceof String) {
int l = ((String) o).length();
}
}
}
@@ -0,0 +1,7 @@
class C {
fun foo(o: Any) {
if (o is String) {
val l = o.length()
}
}
}