Gabor Boros schrieb am Mi., 6. Juni 2018, 10:15:
> 2018. 06. 06. 9:05 keltezéssel, Sven Barth via fpc-devel írta:
> > Seems like a bug due to there being multiple overloads plus the generic.
> > Would you please report that to the bug tracker?
>
>
> Done:
>
>
2018. 06. 06. 9:05 keltezéssel, Sven Barth via fpc-devel írta:
Seems like a bug due to there being multiple overloads plus the generic.
Would you please report that to the bug tracker?
Done:
https://bugs.freepascal.org/view.php?id=33829
Does it work if you add "overload;" to the generic's
Gabor Boros schrieb am Mi., 6. Juni 2018, 08:09:
> Hi All,
>
> This
>
> var
>x:Integer;
>a:array of Integer;
>
> begin
>x:=RandomFrom(a);
>
> code works with 3.0.4 but cannot compile with trunk and got "Error:
> Generics without specialization cannot be used as a type for a
>
Hi All,
This
var
x:Integer;
a:array of Integer;
begin
x:=RandomFrom(a);
code works with 3.0.4 but cannot compile with trunk and got "Error:
Generics without specialization cannot be used as a type for a
variable". Tried x:=specialize RandomFrom(a); but got "Error:
Identifier not