New J2K: correctly convert compound Java assignment expression

#KT-35476 fixed
This commit is contained in:
Ilya Kirillov
2020-01-09 16:30:59 +03:00
parent 6a8a68a263
commit 7bfad12e6a
6 changed files with 46 additions and 2 deletions
@@ -0,0 +1,7 @@
public class J {
public static void main(String[] args) {
boolean a = false, b = true, c = false;
c &= a || b;
System.out.print(c);
}
}
@@ -0,0 +1,10 @@
object J {
@JvmStatic
fun main(args: Array<String>) {
val a = false
val b = true
var c = false
c = c and (a || b)
print(c)
}
}
@@ -0,0 +1,7 @@
public class J {
public static void main(String[] args) {
int a = 0, b = 1, c = 2;
c ^= a & b;
System.out.print(c);
}
}
@@ -0,0 +1,10 @@
object J {
@JvmStatic
fun main(args: Array<String>) {
val a = 0
val b = 1
var c = 2
c = c xor (a and b)
print(c)
}
}