Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Compiler/Delphi/Language    [ Add a report in this area ]  
Report #:  96350   Status: Open
Cannot apply 'deprecated' keyword to property declarations.
Project:  Delphi Build #:  15.0.3890.34076
Version:    15.0 Submitted By:   Remy Lebeau (TeamB)
Report Type:  Basic functionality failure Date Reported:  7/18/2011 8:17:31 AM
Severity:    Commonly encountered problem Last Updated: 2/23/2013 5:26:51 PM
Platform:    All platforms Internal Tracking #:   21261
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: 5
Description
Compiler errors are emitted if the 'deprecated' keyword (with and without a string message) is applied to a property declaration.
Steps to Reproduce:
type
  TTest = class
  protected
    FValue: Integer;
  public
    property Value: Integer read FValue write FValue; deprecated; // E2169 Field definition not allowed after methods or properties
    property Value2: Integer read FValue write FValue deprecated; // E2029 ';' expected but identifier 'deprecated' found
  end;
Workarounds
None
Attachment
None
Comments

Remy Lebeau (TeamB) at 2/22/2013 6:11:31 PM -
Any chance of EVER seeing the 'deprecated' keyword implemented for properties?

Server Response from: ETNACODE01