Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Class Completion    [ Add a report in this area ]  
Report #:  84180   Status: Closed
Record consts break code completion
Project:  Delphi Build #:  14.0.3593.25826
Version:    14.0 Submitted By:   Ken Bourassa
Report Type:  Basic functionality failure Date Reported:  4/27/2010 10:15:36 AM
Severity:    Commonly encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All versions Internal Tracking #:   276179
Resolution: Cannot Reproduce (Resolution Comments) Resolved in Build: : 15.0.3770.29912
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
As the description says, having a record const break the code completion.

Turning the const into a typed const fix the problem.
Steps to Reproduce:
To reproduce, try code completion on either TForm1 or TMyRecordType (CTRL+SHIFT+C by default)

unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs;

type
  TMyRecordType = record
    FValue : Integer;
    const
      SomeConstValue = 'I make class completion fails';
    procedure TrySomething;
  end;

  TForm1 = class(TForm)
  private
    { Private declarations }
  public
    Procedure TryItToo;
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}


end.


Workarounds
None
Attachment
None
Comments

None

Server Response from: ETNACODE01