[fpc-pascal] Feature announcement: Generic functions, procedures and methods
pascaldragon at googlemail.com
Tue Nov 24 14:31:08 CET 2015
Am 24.11.2015 14:26 schrieb "Anthony Walter" <sysrpl at gmail.com>:
> Sven, it would seem you cannot currently cannot pass a generic T to
resolve the type of another generic subroutine.
> In this example, Test<T> cannot reuse T in its call to Min<T>. I believe
this line should be legal "Value := Min<T>(A, B);" (see the code below for
> Currently when you try to compile the unit GenericTest you'll receive a
compiler error on line marked below. Would you like me to enter this into
issue into mantis?
Yes, please. That's definitely something that should work :)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal