blob: 38dfeb87825088d2abb1edea5a6eb4c48a5b6980 [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/fail13756.d(11): Error: foreach: index must be type `const(int)`, not `int`
---
*/
void maiin()
{
int[int] aa = [1:2];
foreach (ref int k, v; aa)
{
}
}