https://issues.dlang.org/show_bug.cgi?id=17473
Stanislav Blinov <stanislav.bli...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |stanislav.bli...@gmail.com --- Comment #6 from Stanislav Blinov <stanislav.bli...@gmail.com> --- This probably should be changed to accepts-invalid instead. Foreach is documented as taking delegates with a ref parameter: https://dlang.org/spec/statement.html#foreach-statement ...therefore that the line `foreach(x; &s.f);` compiles should be an error, shouldn't it? --