Files
kotlin-fork/compiler/testData/codegen/bytecodeText/enum/constructorAccessors.kt
T
2020-07-20 22:37:49 +02:00

15 lines
538 B
Kotlin
Vendored

enum class E(private val value: Int) {
A(0) {
override fun f() {}
},
B(1) {
override fun f() {}
};
abstract fun f()
}
// The JVM BE creates an accessor for the constructor of `E`, but not for the constructors of the enum entry classes E$A and E$B.
// 1 public synthetic <init>\(Ljava/lang/String;IILkotlin/jvm/internal/DefaultConstructorMarker;\)V
// 2 INVOKESPECIAL E.<init> \(Ljava/lang/String;IILkotlin/jvm/internal/DefaultConstructorMarker;\)V
// 3 kotlin/jvm/internal/DefaultConstructorMarker;\)