return tuple should be treated as multiple returns

This commit is contained in:
WebFreak001 2017-04-22 20:40:21 +02:00
parent 21d36af507
commit 2552888693
2 changed files with 14 additions and 2 deletions

View file

@ -98,6 +98,13 @@ string typeSig(T)() if(canDBus!T) {
}
}
string[] typeSigReturn(T)() if(canDBus!T) {
static if(is(T == Tuple!TS, TS...))
return typeSigArr!TS;
else
return [typeSig!T];
}
string typeSigAll(TS...)() if(allCanDBus!TS) {
string sig = "";
foreach(i,T; TS) {