Files
kotlin-fork/backend.native/tests/codegen/enum/linkTest_lib.kt
T
Igor Chevdar 0ff306ad3a Rewrote enum lowering to support usage from other modules.
- Split up enum lowering into two stages: descriptors creation and IR creation.
- Added link stage test.
- Enum.valueOf() uses binary search instead of linear.
2017-03-06 14:35:39 +03:00

7 lines
75 B
Kotlin

package a
enum class A(val x: Int) {
Z1(42),
Z2(117),
Z3(-1)
}