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,14 @@
|
||||
// FILE: Derived.kt
|
||||
// IR_FILE: setFieldWithImplicitCast.txt
|
||||
class Derived : Base() {
|
||||
fun setValue(v: Any) {
|
||||
if (v is String) {
|
||||
value = v
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: Base.java
|
||||
public class Base {
|
||||
public String value;
|
||||
}
|
||||
Reference in New Issue
Block a user