Files
kotlin-fork/j2k/testData/fileOrElement/detectProperties/DifferentProtectedFieldName.java
T
2015-09-25 13:02:46 +03:00

21 lines
331 B
Java
Vendored

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;
}
}