[FIR2IR] Fix NSEE in case of lambda in enum entry constructor call, ^KT-50774 Fixed
This commit is contained in:
committed by
TeamCityServer
parent
a65b278f71
commit
4a200a2d7e
+33
@@ -0,0 +1,33 @@
|
||||
class Wrapper {
|
||||
constructor(baseUrl: String) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
var baseUrl: String
|
||||
field = baseUrl
|
||||
get
|
||||
set
|
||||
|
||||
}
|
||||
|
||||
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 values(): Array<ConfigurationParameter> /* Synthetic body for ENUM_VALUES */
|
||||
|
||||
fun valueOf(value: String): ConfigurationParameter /* Synthetic body for ENUM_VALUEOF */
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user