KT-6118 Redundant type cast can be not redundant?
#KT-6118 Fixed
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
fun test(a: Any?) {
|
||||
when (a) {
|
||||
is String -> {
|
||||
val s = a
|
||||
<!DEBUG_INFO_SMARTCAST!>s<!>.length()
|
||||
}
|
||||
"" -> {
|
||||
val s = a
|
||||
<!DEBUG_INFO_SMARTCAST!>s<!>.hashCode()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user