Enum classes lowering.

This commit is contained in:
Dmitry Petrov
2016-09-28 15:11:37 +03:00
parent af76840826
commit fc754e533d
48 changed files with 1053 additions and 222 deletions
@@ -0,0 +1,21 @@
// WITH_RUNTIME
enum class Test1(val x: Int) {
ZERO, ONE(1);
constructor() : this(0)
}
enum class Test2(val x: Int) {
ZERO {
override fun foo() {
println("ZERO")
}
},
ONE(1) {
override fun foo() {
println("ONE")
}
};
constructor() : this(0)
abstract fun foo()
}