Files
kotlin-fork/compiler/testData/diagnostics/tests/dataFlow/WhenSubject.kt
T
2013-12-11 19:53:50 +04:00

11 lines
191 B
Kotlin

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