3d8d92c7d3
- test data files renamed from *.jet to *.kt
11 lines
165 B
Kotlin
11 lines
165 B
Kotlin
trait Expr
|
|
class BinOp(val operator : String) : Expr
|
|
|
|
fun test(e : Expr) {
|
|
if (e is BinOp) {
|
|
when (e.operator) {
|
|
else -> 0
|
|
}
|
|
}
|
|
}
|