Files
kotlin-fork/nj2k/testData/newJ2k/protected/usages.java
T
2019-04-03 11:24:19 +03:00

36 lines
642 B
Java
Vendored

package test;
public class BaseProtectedConstructor {
protected void usageInConstructor() {
}
protected int usageInPropertyInitializer() {
return 1;
}
protected void usageInStaticInit() {
}
protected void usageInMethod() {
}
}
class DerivedSamePackage {
DerivedSamePackage() {
new BaseProtectedConstructor().usageInConstructor();
}
private int i = new BaseProtectedConstructor().usageInPropertyInitializer();
static {
new BaseProtectedConstructor().usageInStaticInit();
}
void usage() {
new BaseProtectedConstructor().usageInMethod();
}
}