mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
When the enum entry requires a specific class, its constructor should invoke proper supertype constructor (from the corresponding enum class). Corresponding resolved call should be passed from the front-end in CONSTRUCTOR_RESOLVED_DELEGATION_CALL slice. In case of enum entries without explicit supertype initializer, this information was missing.
8 lines
120 B
Kotlin
Vendored
8 lines
120 B
Kotlin
Vendored
enum class Test(val str: String = "OK") {
|
|
OK {
|
|
fun foo() {}
|
|
}
|
|
}
|
|
|
|
fun box(): String =
|
|
Test.OK.str |