ajterr:10048

This is an old revision of the document!


A static function cannot be called on a non-initialized generic type (AJTERR10048)

Product(s) Karo.Net Compiler

A static function cannot be called directly from another function in this type in a generic type, as the type parameters are not initialized.

test::genericType<T> {
    [static]
    test ||: void { }
    [static]
    test2 ||: void {
        test();
//      ^^^^^^ Calling this function is not supported.   
    }
}

Initialize the type with type arguments. In the above example would genericType<string>:test() would be correct.

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