Files
kotlin-fork/compiler/testData/ir/irText/firProblems/lambdaInEnumEntryConstructorCall.kt.txt
T
2024-02-16 10:19:38 +00:00

37 lines
967 B
Kotlin
Vendored

class Wrapper {
var baseUrl: String
field = baseUrl
get
set
constructor(baseUrl: String) /* primary */ {
super/*Any*/()
/* <init>() */
}
}
enum class ConfigurationParameter : Enum<ConfigurationParameter> {
BASE_URL = ConfigurationParameter(apply = local fun <anonymous>(value: String, nc: Wrapper) {
println(message = "Base url updated from config parameters ".plus(other = nc.<get-baseUrl>()).plus(other = " -> ").plus(other = value))
nc.<set-baseUrl>(<set-?> = value)
}
)
private constructor(apply: Function2<String, Wrapper, Unit>) {
super/*Enum*/<ConfigurationParameter>()
/* <init>() */
}
fun valueOf(value: String): ConfigurationParameter /* Synthetic body for ENUM_VALUEOF */
fun values(): Array<ConfigurationParameter> /* Synthetic body for ENUM_VALUES */
val entries: EnumEntries<ConfigurationParameter>
get(): EnumEntries<ConfigurationParameter> /* Synthetic body for ENUM_ENTRIES */
}