JS: translate when against enum to JsSwitch when possible
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
// CHECK_CASES_COUNT: function=box count=6
|
||||
// CHECK_IF_COUNT: function=box count=1
|
||||
|
||||
enum class En { A, B, С }
|
||||
|
||||
fun box(): String {
|
||||
|
||||
Reference in New Issue
Block a user