mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 08:31:31 +00:00
10 lines
219 B
Kotlin
Vendored
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<!>
|
|
}
|
|
}
|
|
} |