blob: 5004dcb9b44ed0ae47592d46b81240452e2c5a1e [file] [log] [blame]
class C {
private var x = ""
internal var other: C? = null
fun getX(): String {
return x
}
internal fun setX(x: String) {
println("setter invoked")
if (other != null) {
this.other!!.x = x
}
this.x = x
}
}