Files
kotlin-fork/js/js.translator/testFiles/patternMatching/cases/whenAsExpression.kt
T
Andrey Breslav 1b65ba644e JS Back-end does not handle complex patterns any more
#KT-2359 In Progress
2012-09-05 14:18:40 +04:00

12 lines
121 B
Kotlin

package foo
fun box() : Boolean {
return (when(1) {
2 -> 3
1 -> 1
else -> 5
} == 1)
}