Files
kotlin-fork/js/js.translator/testData/expression/when/cases/whenAsExpressionWithThrow.kt
T
2014-08-22 02:16:53 +04:00

19 lines
226 B
Kotlin

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