JS: move expressions test to box tests
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package foo
|
||||
|
||||
fun box(): String {
|
||||
|
||||
try {
|
||||
(when (1) {
|
||||
3 -> {
|
||||
3
|
||||
}
|
||||
1 -> {
|
||||
throw Exception()
|
||||
}
|
||||
else -> {
|
||||
return "fail1"
|
||||
}
|
||||
})
|
||||
} catch (e: Exception) {
|
||||
return "OK"
|
||||
}
|
||||
|
||||
return "fail2"
|
||||
}
|
||||
Reference in New Issue
Block a user