https://issues.dlang.org/show_bug.cgi?id=10482

--- Comment #9 from Andrej Mitrovic <[email protected]> ---
Another case from the IRC by someone new to D:

-----
import std.stdio;

int hidden[4];

ref const int[4] getConstHidden()
{
  return hidden;
}

void main()
{
  writeln(hidden);
  foreach (ref i; getConstHidden())
    i = 1;
  writeln(hidden);
}
-----

This needs to be fixed.

--

Reply via email to