Files
kotlin-fork/js/js.translator/testFiles/patternMatching/cases/whenAsExpressionWithThrow.kt
T
2012-02-27 21:55:58 +04:00

19 lines
227 B
Kotlin

package foo
fun box() : Boolean {
(when (1) {
3 -> {
3
}
1 -> {
throw Exception();
}
else -> {
return false
}
})
return false
}