A generic type parameter cannot have the same name as a function parameter (AJTERR10057)
Product(s) | Karo.Net Compiler |
---|
Description
A generic type parameter was specified, that has the same name as a parameter of the function.
test<T, T2> |T: string| { } // ^ ^ Generic type parameter and function parameter have the same name.
How can I resolve this error?
Use different names for parameters and type parameters.