Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2016-03

Edit Shortcut Bug when Defining Generic Record

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mazola Winstrol

Hello,

Lazarus version: 1.6 using the lazarus provided fpc compiler (3.0).

Please confirm if it is a bug:

If i define a generic record, when i press Ctrl+Shift+C to automatically define the implementation, the code generated ignores the type parameter.

=== CODE ===

unit Test;
interface
type
  TMyRecord<T> = record
    procedure TestIfCompiles;
  end;
implementation
// CODE GENERATED WITH Ctrl+Shift+C
procedure TMyRecord.TestIfCompiles;
// Should be TMyRecord<T>.TestIfCompiles;
begin
end;

end,

==== END ====

Best reagds
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20160306/d7e8a4ec/attachment.html>

Reply by email

Donald Ziesig
to Mazola Winstrol
Mazola Winstrol wrote 50 lines
Hello, Lazarus version: 1.6 using the lazarus provided fpc compiler (3.0). Please confirm if it is a bug: If i define a generic record, when i press Ctrl+Shift+C to automatically define the implementation, the code generated ignores the type parameter. === CODE === unit Test; interface type TMyRecord<T> = record procedure TestIfCompiles; end; implementation // CODE GENERATED WITH Ctrl+Shift+C procedure TMyRecord.TestIfCompiles; // Should be TMyRecord<T>.TestIfCompiles; begin end; end, ==== END ==== Best reagds -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Hi Mazola,

It happens to me, as well. I posted a bug report on it a while back, but haven't seen any response to it yet.

Don
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20160306/025698a6/attachment.html>

Reply by email