https://issues.dlang.org/show_bug.cgi?id=17477
Eyal <e...@weka.io> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME |--- --- Comment #2 from Eyal <e...@weka.io> --- It is true that this *specific* example now compiles, but if you extract g() to the global scope it shows the problem again: void f(void delegate(int) nothrow dlg) {} void g(int x) {} void main() { f((x){ g(x); }); } Error: function `testfuncliteral.f(void delegate(int) nothrow dlg)` is not callable using argument types `(void)` cannot pass argument `__lambda1` of type `void` to parameter `void delegate(int) nothrow dlg` --