ajterr:10060

This is an old revision of the document!


Static constructors must not have any parameters (AJTERR10060)

Product(s) Karo.Net Compiler

As static constructors get called in the runtime, it is invalid to specify any parameters.

[static]
[constructor]
|a: string|: void { } /*
 ^^^^^^^^^ Defining parameters in static constructors is invalid. */

Remove all parameters from the static constructor.

  • ajterr/10060.1759068905.txt.gz
  • Last modified: 2026-06-17 00:19
  • (external edit)