J2K: checked that field name change is correctly handled for usages in other converted classes as well
This commit is contained in:
committed by
valentin
parent
030faa4630
commit
9ac23cd657
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user