References to enum entries should be always generated as GET_ENUM
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
enum class X {
|
||||
|
||||
B {
|
||||
val value2 = "OK"
|
||||
override val value = { value2 }
|
||||
};
|
||||
|
||||
abstract val value: () -> String
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return X.B.value()
|
||||
}
|
||||
Reference in New Issue
Block a user