An entrypoint method cannot access its declaring types type parameters (AJTERR10039)
| Product(s) | Karo.NET Compiler |
|---|
Description
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
}
}
How can I resolve this error?
Not specified