Should generics accept empty sets as constants? I think they should and this is
a bug but I wanted to ask first.
{$mode objfpc}
program test;
type
TItem = (A, B, C);
TItems = set of TItem;
generic GType = class
end;
const
TOtherItems = []; // no problems h
Ryan Joseph via fpc-pascal schrieb am
Mo., 4. Mai 2020, 18:48:
> Should generics accept empty sets as constants? I think they should and
> this is a bug but I wanted to ask first.
>
>
>
> {$mode objfpc}
>
> program test;
>
> type
> TItem = (A, B, C);
> TItems = set of
> On May 5, 2020, at 1:03 AM, Sven Barth wrote:
>
> Yes, they should indeed.
>
https://bugs.freepascal.org/view.php?id=37020
Found another one yesterday also but it's a crash
https://bugs.freepascal.org/view.php?id=37014
I think it's a PPU problem.
Regards,
Ryan Joseph
_