d0f0b9e355
For internal members new names are generated, So, references to them from Java will be broken
15 lines
258 B
Kotlin
Vendored
15 lines
258 B
Kotlin
Vendored
class C {
|
|
private var x = ""
|
|
var other: C? = null
|
|
fun getX(): String {
|
|
return x
|
|
}
|
|
|
|
fun setX(x: String) {
|
|
println("setter invoked")
|
|
if (other != null) {
|
|
other!!.x = x
|
|
}
|
|
this.x = x
|
|
}
|
|
} |