Files
kotlin-fork/idea/idea-completion/testData/basic/common/smartCast/SmartCastInWhen.kt
T
2015-09-22 15:00:24 +02:00

8 lines
158 B
Kotlin
Vendored

interface Expr
class Sum(val left : Expr, val right : Expr) : Expr
fun evalWhen(e : Expr) : Int = when (e) {
is Sum -> e.<caret>
}
// EXIST: left, right