JS: translate when against enum to JsSwitch when possible

This commit is contained in:
Alexey Andreev
2017-11-10 15:18:46 +03:00
parent c54c4a6ce8
commit 89db4dfe79
17 changed files with 159 additions and 38 deletions
@@ -1,3 +1,6 @@
// CHECK_CASES_COUNT: function=crash count=2
// CHECK_IF_COUNT: function=crash count=1
class EncapsulatedEnum<T : Enum<T>>(val value: T)
enum class MyEnum(val value: String) {