Fixed multiple returns as tuple
This commit is contained in:
parent
2552888693
commit
fcfb475626
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue