Properties without accessors are generated as

IrGetBackingField / IrSetBackingField expressions.
This commit is contained in:
Dmitry Petrov
2016-09-05 15:06:38 +03:00
committed by Dmitry Petrov
parent a1ad828ea8
commit ceeccfa1b7
40 changed files with 359 additions and 122 deletions
@@ -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;
}