[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
Tue May 31 03:50:13 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=16093
--- Comment #4 from Max Samukha <maxsamukha at gmail.com> ---
(In reply to Max Samukha from comment #0)
> 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
>
Note that it compiles ok with -inline.
--
More information about the Digitalmars-d-bugs
mailing list