[fpc-pascal] Generics Bug
Sven Barth
pascaldragon at googlemail.com
Sat Mar 18 22:41:57 CET 2017
Am 18.03.2017 19:55 schrieb "African Wild Dog" <paintedlycaon at gmail.com>:
>
> Hello,
>
>
> Please confirm this bug.
>
> The unit code bellow won't compile (fpc 3.0.2 - debian jessie amd64):
>
> "generics_bug.pas(17,48) Fatal: Syntax error, "," expected but "<" found"
>
> === CODE ===
>
> unit generics_bug;
>
> {$mode delphi}
>
> interface
>
> type
>
> TPair<TKey, TValue> = record
> Key: TKey;
> Value: TValue;
> end;
>
> TEnumerator<T> = class
> end;
>
> TGenericClass<T, K> = class(TEnumerator<TPair<T, K>>)
> end;
>
> implementation
>
> end.
>
> ===
Nested specializations are currently not supported though they *might* work
with 3.1.1.
Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20170318/aac76adc/attachment.html>
More information about the fpc-pascal
mailing list