[JS IR BE] Support Enum::values

This commit is contained in:
Svyatoslav Kuzmich
2018-09-28 20:23:21 +03:00
parent 0210ec3114
commit bdc3daf972
22 changed files with 43 additions and 24 deletions
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
enum class Test(vararg xs: Int) {
OK;
val values = xs
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
enum class Test(val x: Int, val str: String) {
OK;
constructor(vararg xs: Int) : this(xs.size + 42, "OK")