RSP-10216 Code completion for class property generates code that won't compile
RSP-10216 Code completion for class property generates code that won't compile
Using code completion for the following block
type
TMyClass = class
private
class var FProp1: String;
class procedure SetProp1(const Value: String); static;
public
class procedure Test;
class property Prop1:String read FProp1 write SetProp1;
class property Prop2:Integer;
end;
generates
type
TMyClass = class
private
class var FProp1: String;
class // [dcc32 Error]: E2123 PROCEDURE, FUNCTION, PROPERTY, or VAR expected
class var FProp2: Integer; procedure SetProp1(const Value: String); static;
class procedure SetProp2(const Value: Integer); static;
public
class procedure Test;
class property Prop1:String read FProp1 write SetProp1;
class property Prop2:Integer read FProp2 write SetProp2;
end;
https://quality.embarcadero.com/browse/RSP-10216
https://quality.embarcadero.com/browse/RSP-10216
Using code completion for the following block
type
TMyClass = class
private
class var FProp1: String;
class procedure SetProp1(const Value: String); static;
public
class procedure Test;
class property Prop1:String read FProp1 write SetProp1;
class property Prop2:Integer;
end;
generates
type
TMyClass = class
private
class var FProp1: String;
class // [dcc32 Error]: E2123 PROCEDURE, FUNCTION, PROPERTY, or VAR expected
class var FProp2: Integer; procedure SetProp1(const Value: String); static;
class procedure SetProp2(const Value: Integer); static;
public
class procedure Test;
class property Prop1:String read FProp1 write SetProp1;
class property Prop2:Integer read FProp2 write SetProp2;
end;
https://quality.embarcadero.com/browse/RSP-10216
https://quality.embarcadero.com/browse/RSP-10216
Voted. This and related class completion bugs are quite annoying,
ReplyDelete