mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
23 lines
294 B
D
23 lines
294 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/ice13221.d(20): Error: variable `r` cannot be read at compile time
|
|
---
|
|
*/
|
|
|
|
struct Tuple(T...)
|
|
{
|
|
T field;
|
|
alias field this;
|
|
}
|
|
|
|
template test(T) {}
|
|
|
|
void main()
|
|
{
|
|
foreach (r; 0 .. 0)
|
|
{
|
|
enum i = r;
|
|
test!(Tuple!bool[i]);
|
|
}
|
|
}
|