JS: translate when to JsSwitch when possible
See KT-21160
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
// WITH_RUNTIME
|
||||
// CHECK_CASES_COUNT: function=exhaustive count=3
|
||||
// CHECK_IF_COUNT: function=exhaustive count=0
|
||||
// CHECK_CASES_COUNT: function=nonExhaustive count=3
|
||||
// CHECK_IF_COUNT: function=nonExhaustive count=0
|
||||
|
||||
fun exhaustive(x: Int): Int {
|
||||
var r: Int
|
||||
|
||||
Reference in New Issue
Block a user