A generic type parameter on a function cannot have the same name as a generic type parameter on the enclosing type (AJTERR10058)
Product(s) | Karo.Net Compiler |
---|
Description
A generic type parameter on a function was found, that has the same name as a generic type parameter in the enclosing type.
test::testType<T> { func<T> ||: void { } // ^ This generic type parameter name is already used by the enclosing type. }
How can I resolve this error?
Use a distinct name for the generic type parameters.