ajterr:10039

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.txt
  • Last modified: 2025-08-30 20:35
  • by admin