JS backend: move patternMatching tests to expression/when

This commit is contained in:
Michael Nedzelsky
2014-08-19 16:52:46 +04:00
parent a5c02c792b
commit bfa8fea5b8
21 changed files with 3 additions and 4 deletions
@@ -0,0 +1,22 @@
package foo
fun box(): Boolean {
var result = false
val i = 1
when (i) {
1 ->
when (i) {
1 -> result = true
else -> result = false
}
else ->
when (i) {
1 -> result = true
else -> result = false
}
}
return result;
}