J2K: no redundant type casts
#KT-6794 Fixed
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user