... and another... (yes, this one _IS_ a const issue)

struct S { int opApply(scope int delegate(ref inout(int)) dg) inout { return 0; } }
void main()
{
    foreach (i; S()) { }
}

Error: inout on parameter means inout must be on return type as well (if from D1 code, replace with 'ref')

--------------

I'll go sleep now... but I could probably go on for a while more. I'll try to post more of these bugs when I get the chance (assuming they're welcome...).

Reply via email to