This code fails to compile, but should:
```
void real_func(void delegate() f) {}
// this SHOULD just forward arg as if real_func was called directly
auto forward(T)(T arg) { real_func(arg); }
void main() {
// fails (shouldn't)
forward(() {});
// doesn't fail
// real_func(() {});
}
```
related dpaste: http://dpaste.dzfl.pl/dbe351629838
Comment #1 by robert.schadek — 2024-12-13T18:19:26Z