https://issues.dlang.org/show_bug.cgi?id=16343 --- Comment #7 from Basile-z <b2.temp at gmx.com> --- A fix would be to infer "static"... but this is excessively hard since TemplateDeclaration and TemplateInstance are two different things and the real scope comes with the instance. --