Adjust receivers for possibly synthetic properties access

Synthetic property accessors are treated as extension functions on Java
classes by the front-end. However, underlying Java accessor methods are
proper members.
This commit is contained in:
Dmitry Petrov
2018-07-19 15:37:57 +03:00
parent 73acc86785
commit 779cae7db5
7 changed files with 67 additions and 18 deletions
@@ -1,5 +1,8 @@
// FILE: javaSyntheticPropertyAccess.kt
fun test(j: J) {
j.foo
j.foo = 1
j.foo++
j.foo += 1
}