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: 2026-06-17 00:21
  • by 127.0.0.1