Function.setReturnType

Return a new Function object with the returnType attribute set to value.

struct Function
immutable(Function)
setReturnType
(
string value
)

Examples

pure int answer();
mixin(
  refract!(answer, "answer").setName("realAnswer")
  .setReturnType("real")
  .mixture);
static assert(is(typeof(realAnswer()) == real));

Meta