Fixed multiple returns as tuple

This commit is contained in:
WebFreak001 2017-04-22 21:05:19 +02:00
parent 2552888693
commit fcfb475626

View file

@ -99,6 +99,9 @@ class MessageRouter {
auto retMsg = call.createReturn(); auto retMsg = call.createReturn();
static if(!is(Ret == void)) { static if(!is(Ret == void)) {
Ret ret = handler(args.expand); Ret ret = handler(args.expand);
static if (is(Ret == Tuple!T, T...))
retMsg.build!T(ret.expand);
else
retMsg.build(ret); retMsg.build(ret);
} else { } else {
handler(args.expand); handler(args.expand);