https://issues.dlang.org/show_bug.cgi?id=24265
--- Comment #4 from Paul Backus <[email protected]> --- Looks like this only happens when the return attribute is inferred. --- void test() { int a; ref int f(); ref int g() return; ref int h() => a; // return inferred typeof(&f) dg; dg = &g; // line 9 dg = &h; // line 10 } --- Output: --- bug.d(9): Error: cannot implicitly convert expression `&g` of type `int delegate() ref return` to `int delegate() ref` bug.d(10): Error: cannot implicitly convert expression `&h` of type `int delegate() pure nothrow @nogc ref @safe` to `int delegate() ref` --- --
