Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Code Completion    [ Add a report in this area ]  
Report #:  107843   Status: Need Feedback
Intellisense stops working with TComparer construct
Project:  Delphi Build #:  16.0.4429.46931
Version:    16.4 Submitted By:   Jeroen Bijsterbosch
Report Type:  Basic functionality failure Date Reported:  8/10/2012 12:26:47 PM
Severity:    Serious / Highly visible problem Last Updated: 8/10/2012 6:07:45 PM
Platform:    All versions Internal Tracking #:  
Resolution: Need More Info (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
Intellisense stops working when constructing a sort comparer with the TComparer construct.
Steps to Reproduce:
Example stripped as much as possible.
- Intellisense doesn't work after the construct
- Comment out the line and then it works again.

type TPoint = record
  x, y: double;
end;

function ComparePoints(const Left, Right: TPoint): Integer;
begin
  Result := Left.x - Right.x;
end;

procedure SortPointsWithComparePoints;
var
  List: TList<TPoint>;
begin
  List := TList<TPoint>.Create(TComparer<TPoint>.Construct(ComparePoints));

end;
Workarounds
None
Attachment
None
Comments

Tomohiro Takahashi at 8/10/2012 6:07:19 PM -
Could you please attach sample project to confirm your issue?

Is your issue same as(smilar to) QC#75335 ?

> - Intellisense doesn't work after the construct
> - Comment out the line and then it works again.
and, could you provide more detailed [Steps] to verify your issue?

Server Response from: ETNACODE01