mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
Support loading methods from Java as common properties overrides
This commit is contained in:
24
compiler/testData/codegen/boxWithJava/properties/commonProperties/J.java
vendored
Normal file
24
compiler/testData/codegen/boxWithJava/properties/commonProperties/J.java
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
public class J extends A {
|
||||
|
||||
public boolean okField = false;
|
||||
|
||||
public int getValProp() {
|
||||
return 123;
|
||||
}
|
||||
|
||||
public int getVarProp() {
|
||||
return 456;
|
||||
}
|
||||
|
||||
public void setVarProp(int x) {
|
||||
okField = true;
|
||||
}
|
||||
|
||||
public int isProp() {
|
||||
return 789;
|
||||
}
|
||||
|
||||
public void setProp(int x) {
|
||||
okField = true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user