]>
Commit | Line | Data |
---|---|---|
b4c522fa IB |
1 | /* |
2 | TEST_OUTPUT: | |
3 | --- | |
5fee5ec3 | 4 | fail_compilation/fail44.d(18): Error: expression `bar[i]` is `void` and has no value |
b4c522fa IB |
5 | --- |
6 | */ | |
7 | ||
8 | void Foo() | |
9 | { | |
10 | void[] bar; | |
11 | void[] foo; | |
12 | ||
13 | bar.length = 50; | |
14 | foo.length = 50; | |
15 | ||
16 | for(size_t i=0; i<50; i++) | |
17 | { | |
18 | foo[i] = bar[i]; | |
19 | } | |
20 | } | |
21 |