[Issue 15499] IFTI fails with function literal alias
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Aug 26 11:38:03 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=15499
Nick Treleaven <nick at geany.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nick at geany.org
--- Comment #2 from Nick Treleaven <nick at geany.org> ---
> alias add1(T1,T2) = (T1 a, T2 b) => a+b;
> int add2(T1,T2) (T1 a, T2 b) { return a+b; }
I think this should be changed to an enhancement, because add1 is a function
literal template, whereas add2 is a function template. A function literal is a
pointer, a function is not.
--
More information about the Digitalmars-d-bugs
mailing list