[fpc-pascal] Generics Bug
Sven Barth
pascaldragon at googlemail.com
Sat Mar 18 22:43:48 CET 2017
Am 18.03.2017 22:41 schrieb "Sven Barth" <pascaldragon at googlemail.com>:
>
> 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.
Note: "they" in the sense of "this specific case".
Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20170318/96e4dfa8/attachment.html>
More information about the fpc-pascal
mailing list