Fixed multiple returns as tuple
This commit is contained in:
parent
2552888693
commit
fcfb475626
|
@ -99,7 +99,10 @@ 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);
|
||||||
retMsg.build(ret);
|
static if (is(Ret == Tuple!T, T...))
|
||||||
|
retMsg.build!T(ret.expand);
|
||||||
|
else
|
||||||
|
retMsg.build(ret);
|
||||||
} else {
|
} else {
|
||||||
handler(args.expand);
|
handler(args.expand);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue