mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
15 lines
319 B
D
15 lines
319 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail312.d(13): Error: incompatible types for `(a[]) == (b)`: `int[]` and `short`
|
|
fail_compilation/fail312.d(14): Error: incompatible types for `(a[]) <= (b)`: `int[]` and `short`
|
|
---
|
|
*/
|
|
|
|
void main()
|
|
{
|
|
int[1] a = 1;
|
|
short b = 1;
|
|
assert(a[] == b);
|
|
assert(a[] <= b);
|
|
}
|