[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,5 +1,4 @@
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
enum class Game {
ROCK,
PAPER,
@@ -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")
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
enum class Empty
fun box(): String {
-1
View File
@@ -1,6 +1,5 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME
@@ -1,5 +1,4 @@
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
import Game.*
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
enum class Color {
RED,
BLUE