11 lines
196 B
Kotlin
Vendored
11 lines
196 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 -> 0
|
|
}
|
|
}
|
|
}
|