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 {
return x
}
fun setX(x: String) {
println("setter invoked")
this.x = x
}
internal fun foo() {
x = "a"
}
}