Files
kotlin/compiler/testData/diagnostics/tests/dataFlow/WhenSubject.kt
2015-05-12 19:43:17 +02:00

10 lines
219 B
Kotlin
Vendored

interface Expr
class BinOp(val operator : String) : Expr
fun test(e : Expr) {
if (e is BinOp) {
when (<!DEBUG_INFO_SMARTCAST!>e<!>.operator) {
else -> <!UNUSED_EXPRESSION!>0<!>
}
}
}