4cd7193047
#KT-11018 Fixed
22 lines
510 B
Plaintext
Vendored
22 lines
510 B
Plaintext
Vendored
Resolve target: value-parameter p: kotlin.Any smart-cast to kotlin.String
|
|
----------------------------------------------
|
|
fun foo(p: Any, p1: Any?) {
|
|
x(e.f as String)
|
|
/* STATEMENT DELETED: y(p as? Int) */
|
|
/* STATEMENT DELETED: z(f() as String) */
|
|
|
|
if (a) {
|
|
print((p as String).length)
|
|
}
|
|
else {
|
|
print((p as String).get(1))
|
|
}
|
|
|
|
if (y()) {
|
|
print(<caret>p[1])
|
|
/* STATEMENT DELETED: p1 as String */
|
|
}
|
|
|
|
/* STATEMENT DELETED: z(p1 as String) */
|
|
}
|