Type mismatch in SetLength of generic array
Original Reporter info from Mantis: alexvins
-
Reporter name: Alexander Shishkin
Original Reporter info from Mantis: alexvins
- Reporter name: Alexander Shishkin
Description:
Unable to set length of generic dynamic array
Steps to reproduce:
program generictest5;
{$mode delphi}{$H+}
type
TRec<T> = record
Value : T;
end;
TRecArray<T> = array of TRec<T>;
{ TFoo }
TFoo<T> = class
FArr : TRecArray<T>;
procedure Test;
end;
{ TFoo&LtPos;T> }
procedure TFoo<T>.Test;
begin
SetLength(FArr, 1);
end;
begin
end.
Additional information:
in 2.7.1 same error
Mantis conversion info:
- Mantis ID: 20557
- OS: Windows
- OS Build: XPSP3
- Build: svn 19335
- Platform: i386
- Version: 2.5.1
- Fixed in version: 3.0.0
- Fixed in revision: 19561 (#5d4607f6)
- Monitored by: » alexvins (Alexander Shishkin)