From fcfb47562621afb97e42f4191f93936e417bc44e Mon Sep 17 00:00:00 2001 From: WebFreak001 Date: Sat, 22 Apr 2017 21:05:19 +0200 Subject: [PATCH] Fixed multiple returns as tuple --- source/ddbus/router.d | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/ddbus/router.d b/source/ddbus/router.d index ec25eea..a712334 100644 --- a/source/ddbus/router.d +++ b/source/ddbus/router.d @@ -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); }