Return correct typecode for tuple

This commit is contained in:
Harry T. Vennik 2017-06-05 13:39:56 +02:00
parent f477599a8f
commit 7b826ec80c

View file

@ -143,8 +143,10 @@ string[] typeSigArr(TS...)() if(allCanDBus!TS) {
}
int typeCode(T)() if(canDBus!T) {
string sig = typeSig!T();
return sig[0];
static if (isTuple!T)
return 'r';
else
return typeSig!T()[0];
}
unittest {