Files
kotlin-fork/compiler/testData/diagnostics/tests/dataFlow/WhenSubject.jet
T
Andrey Breslav cf3091adb5 Data flow info always taken into account in safeGetType()
The dangerous method removed
2012-05-13 12:58:50 +04:00

11 lines
165 B
Plaintext

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