On 2016-05-25 13:57, Daniel N wrote:
Issue9608 is good too, but insufficient.import std.traits; static assert(__traits(isTemplate, a => 0)); static assert(!__traits(isTemplate, (int a) => 0)); The 2nd case can't be solved by 9608 since it's about introspecting templates and "(int a) => 0)" is no template.
Hmm, I though the second case was already possible, but I see now that it isn't.
-- /Jacob Carlborg