J2K: checked that field name change is correctly handled for usages in other converted classes as well

This commit is contained in:
Valentin Kipyatkov
2014-10-17 20:54:02 +04:00
committed by valentin
parent 030faa4630
commit 9ac23cd657
2 changed files with 37 additions and 0 deletions
@@ -0,0 +1,20 @@
public class AAA {
protected int myX = 42;
public int getX() {
return myX;
}
public void foo(AAA other) {
System.out.println(myX);
System.out.println(other.myX);
myX = 10;
}
}
class BBB extends AAA {
void bar() {
System.out.println(myX);
myX = 10;
}
}
@@ -0,0 +1,17 @@
public class AAA {
public var x: Int = 42
protected set
public fun foo(other: AAA) {
System.out.println(x)
System.out.println(other.x)
x = 10
}
}
class BBB : AAA() {
fun bar() {
System.out.println(x)
x = 10
}
}