Files
kotlin/compiler/testData/diagnostics/tests/dataFlow/assignment/when.kt
2015-02-16 18:50:10 +03:00

12 lines
247 B
Kotlin

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