Files
kotlin/compiler/testData/diagnostics/tests/dataFlow/WhenSubject.kt
2014-10-01 18:52:52 +04:00

10 lines
215 B
Kotlin

trait 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<!>
}
}
}