Files
kotlin-fork/compiler/testData/codegen/box/enum/nameClashWithCompanion.kt
T
pyos 26e3237b8c 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
2021-06-24 17:41:06 +03:00

19 lines
288 B
Kotlin
Vendored

// 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