ajterr:10039

This is an old revision of the document!


An entrypoint method cannot access its declaring types type parameters (AJTERR10039)

Product(s) Karo.NET Compiler

You used a type parameter in a function called as entry point, which is not valid, as these are uninitialized on application start.

test::testClass<T> {
    #entryPoint; ||: void {
        variable: T := //...
//                ^ A type parameter of the enclosing generic type is used, which is not valid in a entry point  
    }
}

Not specified

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