digitalmars.D.bugs - [Issue 16093] New: Trivial case of passing a template function to
- via Digitalmars-d-bugs (31/31) May 29 2016 https://issues.dlang.org/show_bug.cgi?id=16093
https://issues.dlang.org/show_bug.cgi?id=16093 Issue ID: 16093 Summary: Trivial case of passing a template function to another template function doesn't compile Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: maxsamukha gmail.com void bar(alias f)() { f(); } void main() { void f()() { } bar!f(); } Error: function test.main.f!().f is a nested function and cannot be accessed from test.bar!(f).bar Non-template nested functions are accepted: void main() { void f() { } bar!f(); // ok } --
May 29 2016