View Issue Details

IDProjectCategoryView StatusLast Update
0035821FPCCompilerpublic2019-07-10 20:00
ReporterRyan JosephAssigned To 
Status newResolutionopen 
Product Version3.3.1Product Build 
Target VersionFixed in Version 
Summary0035821: constref isn't allowed in property setters
DescriptionIf you add "constref" to the input parameter of a property setter function you get "Illegal symbol for property access", even though this should be allowed. For example:

  function GetValue(index: integer): T;
  procedure SetValue(index: integer; constref value: T);
  property Values[index: integer]: T read GetValue write SetValue; default; // ERROR: Illegal symbol for property access
TagsNo tags attached.
Fixed in Revision
Attached Files


Ryan Joseph

2019-07-10 20:00

reporter   ~0117141

You can get around this restriction using {$VARPROPSETTER ON} but it should be allowed under normal circumstances.

Issue History

Date Modified Username Field Change
2019-07-10 19:59 Ryan Joseph New Issue
2019-07-10 20:00 Ryan Joseph Note Added: 0117141