Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Class Completion    [ Add a report in this area ]  
Report #:  102047   Status: Open
If define "in" operator in record. Press Ctrl+Shift+C  will lead an Error.
Project:  Delphi Build #:  15.0.3953.35171
Version:    15.1 Submitted By:   wenjie zhou
Report Type:  Basic functionality failure Date Reported:  12/22/2011 11:15:17 PM
Severity:    Commonly encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All versions Internal Tracking #:   289268
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: 5
Description
Code as follow:

interface

  TE1 = (e11, e12);
  TE1S = set of TE1;

  TE2 = (e21, e22);
  TE2S = set of TE2;

  TComplexSet = record
    me1: TE1S;
    me2: TE2S;
    class operator In(En1: TE1; CS: TComplexSet): Boolean;
  end;

Press Ctrl+Shift+C to generate automatically will lead an error: Expected an identifier but IN found in class TComplexSet


Steps to Reproduce:
Code as follow:

interface

  TE1 = (e11, e12);
  TE1S = set of TE1;

  TE2 = (e21, e22);
  TE2S = set of TE2;

  TComplexSet = record
    me1: TE1S;
    me2: TE2S;
    class operator In(En1: TE1; CS: TComplexSet): Boolean;
  end;

Press Ctrl+Shift+C to generate automatically will lead an error: Expected an identifier but IN found in class TComplexSet


Workarounds
None
Attachment
None
Comments

None

Server Response from: ETNACODE01