Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Code Editor/Error Insight    [ Add a report in this area ]  
Report #:  83558   Status: Closed
"Expected > but received >=" with generic class declaration without whitespace
Project:  Delphi Build #:  14.0.3615.26342
Version:    14.0 Submitted By:   Uwe Schuster
Report Type:  Minor failure / Design problem Date Reported:  4/2/2010 1:48:01 PM
Severity:    Infrequently encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All platforms Internal Tracking #:   275809
Resolution: Cannot Reproduce (Resolution Comments) Resolved in Build: : 15.0.3812.31499
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
A generic class declaration without a whitespace between the > and = leads to an "Expected > but received >=" error.

-> see steps
Steps to Reproduce:
- save the file at the end of the steps
- start Delphi
- open GenericsWhitespaceTest.dpr

expected: no Error Insight errors in the Structure view and the editor
actual:
Expected > but received >= at line 6 (6:9)
Expected PROCEDURE but received ( at line 6 (6:16)

- add a space between "TFoo<T>" and "=class(TObject);" and see the error goes away


program GenericsWhitespaceTest;

{$APPTYPE CONSOLE}

type
  TFoo<T>=class(TObject);

begin
end.
Workarounds
None
Attachment
None
Comments

None

Server Response from: ETNACODE01