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