[Issue 15437] documentation for typeof(someTemplate) == void

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Dec 14 05:48:27 PST 2015


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

ZombineDev <petar.p.kirov at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |petar.p.kirov at gmail.com

--- Comment #4 from ZombineDev <petar.p.kirov at gmail.com> ---
Maybe something like this:

T add(T)(T a, T b) { return a + b; }

static assert (is(typeof(add) == template));

alias add2 = (a,b) => a + b;

static assert (is(typeof(add2) == template));

?

--


More information about the Digitalmars-d-bugs mailing list