Properties without accessors are generated as
IrGetBackingField / IrSetBackingField expressions.
This commit is contained in:
committed by
Dmitry Petrov
parent
a1ad828ea8
commit
ceeccfa1b7
@@ -0,0 +1,19 @@
|
||||
// FILE: Derived.kt
|
||||
// IR_FILE: jvmInstanceFieldReference.txt
|
||||
class Derived: Base() {
|
||||
init {
|
||||
value = 0
|
||||
}
|
||||
|
||||
fun getValue() = value
|
||||
|
||||
fun setValue(value: Int) {
|
||||
this.value = value
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: Base.java
|
||||
public class Base {
|
||||
public int value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user