Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Class Completion    [ Add a report in this area ]  
Report #:  100975   Status: Open
Class completion and code browsing does not work in special cases
Project:  Delphi Build #:  16.0.4316.44803
Version:    16.2 Submitted By:   Christian Budde
Report Type:  Basic functionality failure Date Reported:  11/12/2011 5:10:45 AM
Severity:    Commonly encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All platforms Internal Tracking #:   288764
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: 12
Description
In a project I am using a rather complicated record structure, which compiles and works fine, but the code browsing and class completion is broken.

I created a simplified test case like this:

type
  TTestData = record
    Stage : array of record
      RecordData : record
        Test    : Single;
      end;
    end;
  end;

  TTestClass = class(TObject)
  private
    FTestData : TTestData;
  public
    constructor Create;
  end;

If class completion is called and error is shown ('PROCEDURE explected, but '(' found').

Actually this is not critical, but annoying.
Steps to Reproduce:
Create a project containing this code:

type
  TTestData = record
    Stage : array of record
      RecordData : record
        Test    : Single;
      end;
    end;
  end;

  TTestClass = class(TObject)
  private
    FTestData : TTestData;
  public
    constructor Create;
  end;

Then try to complete the TTestClass.
Workarounds
Extract the nested records to new types
Attachment
None
Comments

None

Server Response from: ETNACODE01