caeb0b43be
The added here JvmPlatformOverloadsConflictResolver prefers Java field to property in case of conflicts.
19 lines
280 B
Kotlin
Vendored
19 lines
280 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
// WITH_RUNTIME
|
|
// FILE: test.kt
|
|
|
|
abstract class A {
|
|
@JvmField
|
|
protected var flag: String = "Fail"
|
|
}
|
|
|
|
fun box(): String = object : J() {
|
|
val result = flag
|
|
}.result
|
|
|
|
// FILE: J.java
|
|
|
|
public class J extends A {
|
|
protected String flag = "OK";
|
|
}
|