https://issues.dlang.org/show_bug.cgi?id=18909
ag0aep6g <ag0ae...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code CC| |ag0ae...@gmail.com --- Comment #1 from ag0aep6g <ag0ae...@gmail.com> --- Reduced Phobos away: ---- void main() @safe { assert(identity(2) == 2); /* fails; should pass */ } struct Map(alias fun) { int front() @safe { return fun(); } } int identity(immutable int q) pure nothrow @safe @nogc { int getArg(int b) @safe { return b; } return Map!((int b = q) => getArg(b))().front(); } ---- --