Fixed multiple returns as tuple
This commit is contained in:
parent
2552888693
commit
fcfb475626
|
@ -99,6 +99,9 @@ class MessageRouter {
|
|||
auto retMsg = call.createReturn();
|
||||
static if(!is(Ret == void)) {
|
||||
Ret ret = handler(args.expand);
|
||||
static if (is(Ret == Tuple!T, T...))
|
||||
retMsg.build!T(ret.expand);
|
||||
else
|
||||
retMsg.build(ret);
|
||||
} else {
|
||||
handler(args.expand);
|
||||
|
|
Loading…
Reference in a new issue