Žilvinas Ledas schreef:
Hello all,

I am trying to use generics but compilation fails.
Whan I try to use unit with my generic class in my real project I get "Fatal: Internal error 200204175" error.
When I try to use it in empty Lazarus application (Unit1.pas) and I put
-----
procedure TForm1.Button1Click(Sender: TObject);
var
 lst:  specialize TTwoValuesList<UnicodeString>;
begin
end;
-----
I get these errors:
-----

I would try to use a named type:
type
  TTwoUnicodeValuesList = specialize TTwoValuesList<UnicodeString>;

procedure TForm1.Button1Click(Sender: TObject);
var
 lst:  TTwoUnicodeValuesList;
begin
end;

Vincent
_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to