Files
kotlin-fork/compiler/testData/ir/irText/expressions/javaSyntheticGenericPropretyAccess.kt
T
Roman Artemev 6e01ec8dd3 [IR] Fix translation of synthetic generic java properties
- Compute substituted accessor descriptor to avoid unbound type parameters
2020-03-27 10:52:33 +03:00

15 lines
262 B
Kotlin
Vendored

// FILE: javaSyntheticGenericPropertyAccess.kt
fun <F> test(j: J<F>) {
j.foo
j.foo = 1
j.foo++
j.foo += 1
}
// FILE: J.java
public class J<T> {
private int foo = 42;
public int getFoo() { return foo; }
public void setFoo(int x) {}
}