]>
Commit | Line | Data |
---|---|---|
b4c522fa IB |
1 | /* |
2 | TEST_OUTPUT: | |
3 | --- | |
5fee5ec3 | 4 | fail_compilation/ice13220.d(22): Error: template instance `test!0` does not match template declaration `test(T)()` |
b4c522fa IB |
5 | --- |
6 | */ | |
7 | ||
8 | struct Tuple(T...) | |
9 | { | |
10 | T field; | |
11 | alias field this; | |
12 | } | |
13 | ||
14 | template test(T) | |
15 | { | |
16 | bool test() { return false; }; | |
17 | } | |
18 | ||
19 | void main() | |
20 | { | |
21 | Tuple!bool t; | |
22 | t[0] = test!0(); | |
23 | } |