ce7d8a6874
Split the ConstAndJvmFieldPropertiesLowering into two: ConstLowering which replaces const vals with their values, and PropertiesToFieldsLowering which removes unnecessary property accessors (such as for JvmField or private properties with default accessors) and replaces calls to those accessors with field access
11 lines
172 B
Kotlin
Vendored
11 lines
172 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
// WITH_RUNTIME
|
|
|
|
@file:JvmMultifileClass
|
|
|
|
class A {
|
|
private var r: String = "fail"
|
|
public fun getR(): String = "OK"
|
|
}
|
|
|
|
fun box() = A().getR() |