Discussion:
[fpc-pascal] Generic class aliases
Ryan Joseph via fpc-pascal
2021-04-16 16:29:26 UTC
Permalink
With normal classes you can make aliases to other units but with generics you get an error. Am I doing this wrong or is this not supported?

type
TList = UOther.TList; // Generics without specialization cannot be used as a type for a variable


Regards,
Ryan Joseph

_______________________________________________
fpc-pascal maillist - fpc-***@lists.freepascal.org
https://lists.freepascal
Sven Barth via fpc-pascal
2021-04-16 17:21:26 UTC
Permalink
Post by Ryan Joseph via fpc-pascal
With normal classes you can make aliases to other units but with generics
you get an error. Am I doing this wrong or is this not supported?
type
TList = UOther.TList; // Generics without specialization cannot be used
as a type for a variable
This is not supported.

Regards,
Sven
Loading...