KT-12046 Java to Kotlin dangerous conversion (recursive property set)

#KT-12046 Fixed
This commit is contained in:
Valentin Kipyatkov
2016-04-27 22:10:28 +03:00
parent 9c0e1204ea
commit a9eadcbaf4
34 changed files with 621 additions and 37 deletions
@@ -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)
}
}