[Issue 17401] type inference broken when F and Parameters!F are used

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon May 15 23:19:26 PDT 2017


https://issues.dlang.org/show_bug.cgi?id=17401

--- Comment #1 from Tomer Filiba <tomerfiliba at gmail.com> ---
the first version (wrap1) would have been OK, but it cannot be used with
`ref`/`scope`/`lazy` etc, as these would be lost when using `T...`. so

void f(ref int x) {}
int x;
wrap1(&f, x);   // void function(int) != void function(ref int)

--


More information about the Digitalmars-d-bugs mailing list