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,7 +99,10 @@ class MessageRouter {
auto retMsg = call.createReturn();
static if(!is(Ret == void)) {
Ret ret = handler(args.expand);
retMsg.build(ret);
static if (is(Ret == Tuple!T, T...))
retMsg.build!T(ret.expand);
else
retMsg.build(ret);
} else {
handler(args.expand);
}