View Issue Details

IDProjectCategoryView StatusLast Update
0023324LazarusIDEpublic2019-11-04 08:04
ReporterBenito van der ZanderAssigned ToMattias Gaertner 
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
Platformamd64OSDebianOS Versionwheezy
Product Version1.1 (SVN)Product Build1.1 r38276, 2.6.0 x86_64-l.-gtk2 
Target VersionFixed in Version 
Summary0023324: code tools do not recognize function with default parameter as property accessor
DescriptionThe code tools do not recognize a function that has additional default parameters as property accessor.
Steps To ReproduceIf you have a working class like

TTest = class
  procedure add(a: string; AValue: string; temp: integer = 0);
public
  property test[a: string]: string write add;
end;


pressing ctrl+c creates an useless add procedure:

TTest = class
  procedure add(a: string; AValue: string; temp: integer = 0);
private
  procedure add(a: string; AValue: string);
public
  property test[a: string]: string write add;
end;



Similarly this:

TTest = class
  procedure add(AValue: string; temp: integer = 0);
public
  property tes: string write add;
end;


is changed to

TTest = class
  procedure add(AValue: string; temp: integer = 0);
private
  add: string;
public
  property tes: string write add;
end;
  
(which does not even compile)
TagsNo tags attached.
Fixed in Revision
LazTarget
Widgetset
Attached Files

Relationships

related to 0031299 acknowledgedMattias Gaertner [feature request] More intelligent code/class completion 
related to 0035413 new "Complete code" duplicates getter/setter methods with empty parenthesis 

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2012-11-14 17:24 Benito van der Zander New Issue
2012-11-14 17:58 Mattias Gaertner Status new => assigned
2012-11-14 17:58 Mattias Gaertner Assigned To => Mattias Gaertner
2019-11-04 08:04 Juha Manninen Relationship added related to 0031299
2019-11-04 08:04 Juha Manninen Relationship added related to 0035413