Fir2Ir: more precise calculation of enum class modality
Use the same condition as in the already existing `createIrEnumEntry` function (and as in psi2ir): enum class should be final unless there's an enum entry with any declaration other than its constructor. #KT-57216
This commit is contained in:
committed by
Space Team
parent
2cc3b542fd
commit
68b94b07b8
+1
-1
@@ -12,7 +12,7 @@ class Wrapper {
|
||||
|
||||
}
|
||||
|
||||
open enum class ConfigurationParameter : Enum<ConfigurationParameter> {
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user