In the previous version (8.1) this code work properly:
TList<T> = public class mapped to
System.Collections.Generic.List<T>
private
method GetItem(AIndex: TInteger): T;
method SetItem(AIndex: TInteger; AValue: T);
public
constructor; mapped to constructor();
method Exchange(AIndex1, AIndex2: TInteger);
property Items[AIndex: TInteger]: T read GetItem write SetItem; default;
property Handle: System.Collections.Generic.List<T> read mapped;
end;
method TList<T>.Exchange(AIndex1, AIndex2: TInteger);
var
Item: T;
begin
Item := Items[AIndex1];
Items[AIndex1] := Items[AIndex2];
Items[AIndex2] := Item;
end;
In the new version (8.2) the compiler produces errors:
Error 1 (E318) No overloaded method “get_Items” with 0 parameters on type “TList”
I attached project and screenshot.
Bug188.rar (183.7 KB)
Best regards,
Jose A.