Table of Contents

You cannot mark a function as static that uses a class reference parameter (AJTERR10031)

Product(s) Karo.NET Compiler

Description

A function declaration which was marked with the sl.attributes::static attribute cannot specify a class reference parameter.

[static]
test |self: !| { }
//          ^ A class reference parameter is not valid here.

How can I resolve this error?

Make the function non-static.