Constructors cannot directly have generic type parameters (AJTERR10056)
Product(s) | Karo.Net Compiler |
---|
Description
A function marked with the sl.attributes::constructor
attribute must not have any generic type parameters. This is due to the fact, when calling a constructor the type arguments get passed to the type and not the constructor.
[constructor] test<T> ||: void { // ^^^ Constructors cannot have any generic type parameters. }
How can I resolve this error?
Add these type parameters to the type definition-