Get the type of the return value from a function,
a pointer to function, a delegate, a struct
with an opCall, a pointer to a struct with an opCall,
or a class with an opCall. Please note that $(D_KEYWORD ref)
is not part of a type, but the attribute of the function
(see template functionAttributes).
To reduce template instantiations, consider instead using
typeof(() { returnfunc(args); } ()) if the argument types are known or
staticif (is(typeof(func) Ret == return)) if only that basic test is needed.
Get the type of the return value from a function, a pointer to function, a delegate, a struct with an opCall, a pointer to a struct with an opCall, or a class with an opCall. Please note that $(D_KEYWORD ref) is not part of a type, but the attribute of the function (see template functionAttributes).