Is there a way to get the return type of a function? Like imagine we have:
fn Something(T1 : type, T2 : type) type {
// Return the type
}
fn something(v1 : T1, v2 : T2) Something(T1, T2) {
var value : Something(T1, T2) = undefined;
// Initialise the value above
return value;
}
My problem is that I have to rewrite Something(T1, T2) when declaring the value variabe, is there any builtin or function to get the return type of the function? Something like @returnType?