Rename: Fixed rename of Java getters/setters through synthetic property references in Kotlin
#KT-8817 Fixed
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
public class Bean {
|
||||
private String prop = "value";
|
||||
public String getProp() { return prop; }
|
||||
public void setProp(String prop) { this.prop = prop; }
|
||||
|
||||
void test() {
|
||||
getProp();
|
||||
setProp("");
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
fun test(bean: Bean) {
|
||||
bean./*rename*/prop = "a"
|
||||
println(bean.prop)
|
||||
bean.prop += "a"
|
||||
}
|
||||
Reference in New Issue
Block a user