On Friday, 20 July 2018 at 18:24:11 UTC, Timoses wrote: > [snip] > > It works in module scope > > https://run.dlang.io/is/OQKYag > > I don't know why though... This was reported in 2013. IMO, it should be mentioned in the spec if they don't plan on changing it. https://issues.dlang.org/show_bug.cgi?id=11064