KT-12046 Java to Kotlin dangerous conversion (recursive property set)
#KT-12046 Fixed
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
public class C {
|
||||
private String x = "";
|
||||
|
||||
public String getX() {
|
||||
return x;
|
||||
}
|
||||
|
||||
public void setX(String x) {
|
||||
System.out.println("old value: " + this.x);
|
||||
this.x = x;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user