[Issue 16093] Trivial case of passing a template function to another template function doesn't compile

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun May 29 10:02:36 PDT 2016


b2.temp at gmx.com changed:

           What    |Removed                     |Added
                 CC|                            |b2.temp at gmx.com

--- Comment #1 from b2.temp at gmx.com ---
It's because f is local. When f is static (i.e like a free function) it works

void bar(alias f)() {

void main() {
    static void f()() {

The doc is not clear about this case. So even if this is invalid the doc needs
at least to list exactly what's supported or not.




More information about the Digitalmars-d-bugs mailing list