mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
15 lines
316 B
D
15 lines
316 B
D
// https://issues.dlang.org/show_bug.cgi?id=23674
|
|
|
|
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/test23674.d(14): Error: array index 2 is out of bounds `arr[0 .. 2]`
|
|
fail_compilation/test23674.d(14): Error: array index 3 is out of bounds `arr[0 .. 2]`
|
|
---
|
|
*/
|
|
|
|
void main()
|
|
{
|
|
string[2] arr;
|
|
assert(arr[2] == arr[3]);
|
|
}
|