KT-12046 Java to Kotlin dangerous conversion (recursive property set)
#KT-12046 Fixed
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
class C {
|
||||
private var x = ""
|
||||
|
||||
fun getX(): String {
|
||||
println("getter invoked")
|
||||
return x
|
||||
}
|
||||
|
||||
fun setX(x: String) {
|
||||
this.x = x
|
||||
}
|
||||
|
||||
internal fun foo() {
|
||||
println("x = " + x)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user