Comment #0 by siegelords_abode — 2011-10-30T11:21:41Z
DMD version: 2.056
inout(char)[] test(inout(char)[] a)
{
foreach(dchar d; a) // No error if 'dchar' is removed
{
foreach(c; a) // line 5
{
}
}
return [];
}
test.d(5): Error: variable test.test.__foreachbody3.__aggr4 inout variables can only be declared inside inout functions
test.d(5): Error: variable test.test.__foreachbody3.c inout variables can only be declared inside inout functions