mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
25 lines
336 B
D
25 lines
336 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/ice13644.d(22): Error: foreach: key cannot be of non-integral type `string`
|
|
---
|
|
*/
|
|
|
|
struct Tuple(T...)
|
|
{
|
|
T field;
|
|
alias field this;
|
|
}
|
|
|
|
Tuple!(string, string)[] foo()
|
|
{
|
|
Tuple!(string, string)[] res;
|
|
return res;
|
|
}
|
|
|
|
void main()
|
|
{
|
|
foreach (string k2, string v2; foo())
|
|
{
|
|
}
|
|
}
|