New J2K: correctly convert compound Java assignment expression
#KT-35476 fixed
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user