mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
12 lines
190 B
D
12 lines
190 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail6611.d(11): Error: cannot post-increment array slice `x[]`, use pre-increment instead
|
|
---
|
|
*/
|
|
|
|
void main()
|
|
{
|
|
auto x = new int[](10);
|
|
x[]++;
|
|
}
|