[Lazarus] ctrl-c code completion

Michael Van Canneyt michael at freepascal.org
Tue Nov 8 13:10:40 CET 2016



On Tue, 8 Nov 2016, Mattias Gaertner via Lazarus wrote:

> On Sun, 6 Nov 2016 18:05:39 +0100 (CET)
> Michael Van Canneyt via Lazarus <lazarus at lists.lazarus-ide.org> wrote:
>
>> [...]
>> - Function to function,
>> 
>> - Procedure to procedure
>> 
>> - and the setter in
>>
>>    property Values[const Name: string]: string read GetValue write SetValue;
>>
>>    is changed from
>>
>>    procedure SetValue(const Name, Value: string);
>>
>>    to
>>
>>    procedure SetValue(const Name : string; Const Value: string);
>>
>>    Causing the compiler to generate an error...
>
> Why does that cause a compiler error?

Because both procedures remained in the sources.

Open classes unit, press code completion shortcut while in TStrings (or was
it TStringlist?), and observe the effect... I noticed this while fixing a bug report.

Michael.


More information about the Lazarus mailing list