J2K: cast right operand of equals for primitive types to left operand type

#KT-9997 Fixed
This commit is contained in:
Natalia Ukhorskaya
2015-12-18 09:56:23 +03:00
parent 1d787ed222
commit ecdef71580
7 changed files with 420 additions and 4 deletions
@@ -0,0 +1,45 @@
//file
class Test {
public void operationsWithChar() {
char c = 1;
int i = 1;
b(i > c);
b(i >= c);
b(i < c);
b(i <= c);
b(c > i);
b(c >= i);
b(c < i);
b(c <= i);
b(c == i);
b(c != i);
b(i == c);
b(i != c);
i(i + c);
i(i - c);
i(i / c);
i(i * c);
i(i % c);
i(i | c);
i(i & c);
i(i << c);
i(i >> c);
i(c + i);
i(c - i);
i(c / i);
i(c * i);
i(c % i);
i(c | i);
i(c & i);
i(c << i);
i(c >> i);
}
public void b(boolean b) {}
public void i(int i) {}
}