Comment #0 by leandro.lucarella — 2012-05-03T05:07:59Z
---
void foo(alias f)() {
f();
}
void bar() {
foo!({})();
}
void main() {
bar();
}
---
dmd -inline -c m1.d
m1.d(1): Error: function m1.bar.foo!(delegate void()
{
}
).foo is a nested function and cannot be accessed from main
Pretty similar to bug 5499 but not the same as the failures are so different.
Comment #1 by razvan.nitu1305 — 2022-08-16T11:25:45Z