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,14 @@
class C {
private var myX = ""
var x: String
get() = myX
set(x) {
println("setter invoked")
this.myX = x
}
internal fun foo() {
myX = "a"
}
}