New J2K: fix assignment target in ConvertGettersAndSettersToPropertyProcessing

#KT-36190 fixed
This commit is contained in:
Ilya Kirillov
2020-03-27 17:34:43 +03:00
parent b3e728f4fb
commit d6d843aaed
4 changed files with 29 additions and 2 deletions
@@ -0,0 +1,10 @@
public class TestSetter {
private static void setThing(int thing) { }
private static int isThing() { return 42; }
public static void main(String[] args) {
setThing(42);
System.out.println(isThing());
}
}
@@ -0,0 +1,11 @@
object TestSetter {
private var isThing: Int
private get() = 42
private set(thing) {}
@JvmStatic
fun main(args: Array<String>) {
isThing = 42
println(isThing)
}
}