07-18-2023, 06:38 PM
I'm trying to derive my class from generic class:
class foo<T> {}
class bar : foo<Int> {}
But this code fails to compile with en error:
> Classes derived from generic classes must also be generic
How to avoid this limitation? Is it possible?
class foo<T> {}
class bar : foo<Int> {}
But this code fails to compile with en error:
> Classes derived from generic classes must also be generic
How to avoid this limitation? Is it possible?