JS: translate when against enum to JsSwitch when possible
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
// CHECK_CASES_COUNT: function=doTheThing count=2
|
||||
// CHECK_IF_COUNT: function=doTheThing count=2
|
||||
|
||||
private fun Any?.doTheThing(): String {
|
||||
when (this) {
|
||||
|
||||
Reference in New Issue
Block a user