mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
23 lines
314 B
D
23 lines
314 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/ice13220.d(22): Error: template instance `test!0` does not match template declaration `test(T)()`
|
|
---
|
|
*/
|
|
|
|
struct Tuple(T...)
|
|
{
|
|
T field;
|
|
alias field this;
|
|
}
|
|
|
|
template test(T)
|
|
{
|
|
bool test() { return false; };
|
|
}
|
|
|
|
void main()
|
|
{
|
|
Tuple!bool t;
|
|
t[0] = test!0();
|
|
}
|