View Issue Details

IDProjectCategoryView StatusLast Update
0033416pas2jstranspilerpublic2020-09-27 09:42
ReporterMichael Van Canneyt Assigned ToMattias Gaertner  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
Product Versiontrunk 
Summary0033416: Property read/write cannot specify an array
DescriptionIt's not possible to specify array elements as the field for a property.

The following error occurs
[Error] not yet implemented: :TParamsExpr [20160922163436]
not yet implemented: :TParamsExpr [20160922163436]
[Fatal Error] not yet implemented: :TParamsExpr [20160922163436]

Probably, a field of a record is also impossible.
 
Steps To Reproduceunit a;

interface

Type
 TMyClass = class(TObject)
  private
    XARR: Array[0..2] of Integer;
    procedure SetXArr(const Value: Integer);
  public
    { Public declarations }
    property X: Integer read XARR[0] write SetXArr;
  end;

implementation

procedure TMyClass.SetXArr(const Value: Integer);

begin
  Xarr[0]:=Value;
end;

end.
TagsNo tags attached.
Fixed in Revision
Attached Files

Relationships

has duplicate 0037742 resolvedMattias Gaertner Properties with Array cannot be compilerd 

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2018-03-12 12:51 Michael Van Canneyt New Issue
2018-03-12 12:55 Mattias Gaertner Assigned To => Mattias Gaertner
2018-03-12 12:55 Mattias Gaertner Status new => assigned
2020-09-27 09:42 Mattias Gaertner Relationship added has duplicate 0037742