JS backend: move patternMatching tests to expression/when
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package foo
|
||||
|
||||
|
||||
fun box(): Boolean {
|
||||
|
||||
return (when(1) {
|
||||
2 -> 3
|
||||
1 -> 1
|
||||
else -> 5
|
||||
} == 1)
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user