From: http://forum.dlang.org/thread/aldgsmoserwuvtfxzajn@forum.dlang.org This code should work, but doesn't. void main() { int z; typeof((int a){return z;}) dg; dg = (int a){return z;}; }
https://github.com/D-Programming-Language/dmd/pull/1572
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/87ae665a998286324fbee138629b8ff782108eb2 fix Issue 9415 - delegate inference should make function literal impure https://github.com/D-Programming-Language/dmd/commit/a5ab2c3c4a63288c83226e891d7a6200b2883a09 Merge pull request #1572 from 9rnsr/fix9415 Issue 9415 - delegate inference should make function literal impure