Table of Contents

A function marked as entrypoint must not have any parameters (AJTERR10020)

Product(s) Karo.NET compiler

Description

A function marked as entrypoint must not have any parameters as these cannot be provided by the runtime.

#entryPoint;
main |test: string|: void { }
//    ^^^^^^^^^^^^ An argument

How can I resolve this error?

Remove all parameters from the function definition.