Table of Contents

Static constructors must not have any parameters (AJTERR10060)

Product(s) Karo.Net Compiler

Description

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. */

How can I resolve this error?

Remove all parameters from the static constructor.