Visual Studio 2015 Update 3
Elements 10.0.0.2305
The Complete Class menu option duplicates the Setters and Geters.
Attached solution to perform the tests .CompleteClassTest.rar (8.5 KB)
Description of the error:
I have this unit:
namespace CompleteClassTest;
interface
type
Class1 = public class
private
method SetSecond(value: String);
method GetSecond: String;
method SetFirst(value: String);
method GetFirst: String;
protected
public
property First: String read GetFirst write SetFirst;
property Second: String read GetSecond write SetSecond;
end;
implementation
method Class1.GetFirst: String;
begin
end;
method Class1.SetFirst(value: String);
begin
end;
method Class1.GetSecond: String;
begin
end;
method Class1.SetSecond(value: String);
begin
end;
end.
If I click on Complete Class I get this:
namespace CompleteClassTest;
interface
type
Class1 = public class
private
method GetFirst: String;
method SetFirst(value: String);
method GetSecond: String;
method SetSecond(value: String);
method SetSecond(value: String);
method GetSecond: String;
method SetFirst(value: String);
method GetFirst: String;
protected
public
property First: String read GetFirst write SetFirst;
property Second: String read GetSecond write SetSecond;
end;
implementation
method Class1.GetFirst: String;
begin
end;
method Class1.SetFirst(value: String);
begin
end;
method Class1.GetSecond: String;
begin
end;
method Class1.SetSecond(value: String);
begin
end;
method Class1.GetFirst: String;
begin
end;
method Class1.SetFirst(value: String);
begin
end;
method Class1.GetSecond: String;
begin
end;
method Class1.SetSecond(value: String);
begin
end;
end.
If I execute Complete Class again another set of Setters and Getters is added, and so on to infinity (and beyond)