[fpc-pascal] := overload with implicit arrays in generics
Ryan Joseph
ryan at thealchemistguild.com
Sun Jun 3 04:58:24 CEST 2018
Did anyone have any idea about this or should I just file a bug report for now? I don’t want to forget about it if possible.
> On Jun 2, 2018, at 1:05 PM, Ryan Joseph <ryan at thealchemistguild.com> wrote:
>
> type
> generic TMyCollection<T> = record
> class operator := (values: array of T): TMyCollection;
> end;
>
> class operator TMyCollection.:= (values: array of T): TMyCollection;
> begin
> end;
>
> var
> c: specialize TMyCollection<string>;
> begin
> c := ['aaa', 'bbb', 'ccc’]; // Ordinal expression expected
Regards,
Ryan Joseph
More information about the fpc-pascal
mailing list