Files
kotlin-fork/compiler/testData/ir/irText/expressions/setFieldWithImplicitCast.kt
T
Dmitry Petrov ceeccfa1b7 Properties without accessors are generated as
IrGetBackingField / IrSetBackingField expressions.
2016-10-18 09:09:01 +03:00

15 lines
247 B
Kotlin
Vendored

// 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;
}