Files
kotlin-fork/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/WhenSubject.kt
T
Alexander Udalov ac7ee9d3f5 Retain data flow info after when-expressions
This means the subject expression and the common data flow info of all entries'
conditions
2012-11-16 17:56:23 +04:00

7 lines
87 B
Kotlin

fun foo(x: Number) {
when (x as Int) {
else -> x : Int
}
x : Int
}