Files
kotlin/compiler/testData/diagnostics/tests/dataFlow/assignment/when.kt
2015-10-14 20:39:35 +03:00

12 lines
245 B
Kotlin
Vendored

fun test(a: Any?) {
when (a) {
is String -> {
val s = a
<!DEBUG_INFO_SMARTCAST!>s<!>.length
}
"" -> {
val s = a
<!DEBUG_INFO_SMARTCAST!>s<!>.hashCode()
}
}
}