TurboScript icon indicating copy to clipboard operation
TurboScript copied to clipboard

User wants to use generic data types with functions

Open nidin opened this issue 8 years ago • 1 comments

What? User wants to have generic data type as parameters for functions

How? Implement generic parameters for functions

function funcName<T>(arg:T):T{
}

nidin avatar Apr 12 '17 20:04 nidin

We already implemented generics for classes (#2) therefore same code can be reused to implement this feature.

nidin avatar Apr 27 '17 15:04 nidin