Identifier completation problem with inline specialization
Original Reporter info from Mantis: silvioprog
-
Reporter name: silvioprog
Original Reporter info from Mantis: silvioprog
- Reporter name: silvioprog
Description:
Hello,
Consider the following code:
unit Unit1; {$mode delphi} interface uses Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs; type TForm1 = class(TForm) end; TUtils = class public function Iif&LtPos;T>(ACond: Boolean; const ATrueValue, AFalseValue: T): T; end; var Form1: TForm1; implementation {$R *.lfm} function TUtils.Iif&LtPos;T>(ACond: Boolean; const ATrueValue, AFalseValue: T): T; begin // try to complete code here ... end; end.
The IDE can't complete any identifier in that place above. And more, if you try to do anything (placing a button in the form, implementing any event etc.), the IDE raises the The Codetools found an error: expected :, but T found
.
Mantis conversion info:
- Mantis ID: 29481