[IR] Fix serialization of ENUM_SPECIAL members

This commit is contained in:
Roman Artemev
2019-06-03 19:05:10 +03:00
committed by romanart
parent e32bbcecc2
commit efaf5a9947
8 changed files with 60 additions and 3 deletions
+22
View File
@@ -0,0 +1,22 @@
// WITH_RUNTIME
// MODULE: lib
// FILE: common.kt
enum class FooEnum(val s: String) {
O("O"),
FAIL("FAIL"),
K("K");
}
// MODULE: bar(lib)
// FILE: second.kt
fun bar(): String = FooEnum.valueOf("O").s + FooEnum.values()[2].s
// MODULE: main(bar)
// FILE: main.kt
fun box(): String {
return bar()
}