[fpc-devel] Problem with generic parameter

Dmitriy Pomerantsev pda2 at yandex.ru
Sat Dec 31 10:38:50 CET 2016


Welcome to five years old bug. :)
http://bugs.freepascal.org/view.php?id=20503
 
Dmitriy Pomerantsev.

31.12.2016, 09:08, "Gennady Agranov" <gennadyagranov at gmail.com>:
>
> but if i call it from another generic type - it does not compile:
>
> class procedure Arrays<T>.sort(var arr: array of T; const Comparer: IComparer<T>);
>
> Fatal: Syntax error, "CREATE" expected but "SORT" found
>
> Anything I can do to make it compile?



More information about the fpc-devel mailing list