| 1 |
/* |
| 2 |
TEST_OUTPUT: |
| 3 |
--- |
| 4 |
fail_compilation/ice13382.d(18): Error: incompatible types for `(a) == (0)`: `int[]` and `int` |
| 5 |
fail_compilation/ice13382.d(19): Error: incompatible types for `(a) >= (0)`: `int[]` and `int` |
| 6 |
fail_compilation/ice13382.d(20): Error: incompatible types for `(0) == (a)`: `int` and `int[]` |
| 7 |
fail_compilation/ice13382.d(21): Error: incompatible types for `(0) >= (a)`: `int` and `int[]` |
| 8 |
fail_compilation/ice13382.d(22): Error: incompatible types for `(a) is (0)`: `int[]` and `int` |
| 9 |
fail_compilation/ice13382.d(23): Error: incompatible types for `(a) !is (0)`: `int[]` and `int` |
| 10 |
fail_compilation/ice13382.d(24): Error: incompatible types for `(0) is (a)`: `int` and `int[]` |
| 11 |
fail_compilation/ice13382.d(25): Error: incompatible types for `(0) !is (a)`: `int` and `int[]` |
| 12 |
--- |
| 13 |
*/ |
| 14 |
|
| 15 |
void main () |
| 16 |
{ |
| 17 |
int[] a; |
| 18 |
if (a == 0) {} |
| 19 |
if (a >= 0) {} |
| 20 |
if (0 == a) {} |
| 21 |
if (0 >= a) {} |
| 22 |
if (a is 0) {} |
| 23 |
if (a !is 0) {} |
| 24 |
if (0 is a) {} |
| 25 |
if (0 !is a) {} |
| 26 |
} |