JVM_IR: never rename public/protected fields
And if that causes a platform declaration clash, that's not a problem that can be solved without breaking the ABI anyway. #KT-47412 Fixed
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// WITH_RUNTIME
|
||||
// MODULE: lib
|
||||
// FILE: lib.kt
|
||||
|
||||
enum class E(val value: String) {
|
||||
OK("K");
|
||||
|
||||
companion object {
|
||||
@JvmField
|
||||
val OK = "O"
|
||||
}
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: main.kt
|
||||
fun box() = E.OK + E.OK.value
|
||||
Reference in New Issue
Block a user