Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Code Editor/Formatting    [ Add a report in this area ]  
Report #:  89290   Status: Closed
There is no space between ] and write directive
Project:  Delphi Build #:  15.0.3890.34076
Version:    15.0 Submitted By:   Dalija Prasnikar
Report Type:  Minor failure / Design problem Date Reported:  10/28/2010 12:01:51 AM
Severity:    Infrequently encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All platforms Internal Tracking #:   280991
Resolution: Fixed (Resolution Comments) Resolved in Build: : 16.0.4031.36240
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
If you have property that reads and writes fixed array field there is no space between ] and write directive.
Steps to Reproduce:
Formating the following code results in:

type
  TMyClass = class
  private
    FTable: array of [0 .. 1] of string;
  published
    property Table0: string read FTable[0]write FTable[0];
    property Table1: string read FTable[1]write FTable[1];
  end;

and it should be

type
  TMyClass = class
  private
    FTable: array of [0 .. 1] of string;
  published
    property Table0: string read FTable[0] write FTable[0];
    property Table1: string read FTable[1] write FTable[1];
  end;
Workarounds
None
Attachment
None
Comments

None

Server Response from: ETNACODE01