Case code: ---- void main() { void foo(int function(int) fp = x => 1) { assert(fp(1) == 1); } foo(); } Output: ---- test.d(6): Error: undefined identifier __T1 test.d(6): Error: forward reference to __lambda2
https://github.com/D-Programming-Language/dmd/pull/789
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/9939ff65daecba1dbc9b534166b5a06f3cf07c51 fix Issue 7649 - Bad lambda inference in default function argument