https://issues.dlang.org/show_bug.cgi?id=16093
Basile-z changed:
What|Removed |Added
CC|b2.t...@gmx.com |
--
https://issues.dlang.org/show_bug.cgi?id=16093
b2.t...@gmx.com changed:
What|Removed |Added
CC||b2.t...@gmx.com
--- Comment #1 from b2.t...
https://issues.dlang.org/show_bug.cgi?id=16093
--- Comment #2 from Max Samukha ---
(In reply to b2.temp from comment #1)
> It's because f is local. When f is static (i.e like a free function) it works
>
void main() {
int x = 1;
void f() {
x += 1;
}
bar!f(); // ok
}
'f'
https://issues.dlang.org/show_bug.cgi?id=16093
Max Samukha changed:
What|Removed |Added
Severity|normal |critical
--- Comment #3 from Max Samukha ---
https://issues.dlang.org/show_bug.cgi?id=16093
--- Comment #4 from Max Samukha ---
(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 canno
https://issues.dlang.org/show_bug.cgi?id=16093
Iain Buclaw changed:
What|Removed |Added
Priority|P1 |P2
--