ajterr:10056

Constructors cannot directly have generic type parameters (AJTERR10056)

Product(s) Karo.Net Compiler

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.
}

Add these type parameters to the type definition-

  • ajterr/10056.txt
  • Last modified: 2025-09-28 16:05
  • by admin