Generic Type declared inside class after methods stops find declaration
Original Reporter info from Mantis: sekelsenmat
-
Reporter name: Felipe Monteiro de Carvalho
Original Reporter info from Mantis: sekelsenmat
- Reporter name: Felipe Monteiro de Carvalho
Description:
Steps to reproduce:
1> In the example program bellow, right click in TManagedVector from the line "local: TManagedVector;" and select "Find declaration"
Result:
project1.lpr(17,22) Error: : expected, but = found
The program compiles fine.
Example program:
program Project1;
{$mode objfpc}{$H+}
uses
Classes
{ you can add units after this };
type
generic TManagedVector<_TYPE> = class(TObject)
public type
// Standard constructor, reserves InitialCapacity slots for the array.
// The vector capacity is doubled each time it runs out of space. Initial
// size is 0, use Resize or Push to increase size.
constructor Create( InitialCapacity : DWord = 16);
TSortFunction = function( const a : _TYPE; const b : _TYPE ) : Boolean of object;
var public
constructor TManagedVector.Create( InitialCapacity : DWord = 16);
begin
end;
var
local: TManagedVector;
begin
end.
Mantis conversion info:
- Mantis ID: 25927
- OS: Mandrake Linux and Windows XP
- OS Build: 10.2 and 5.1
- Platform: x86 intel
- Version: 1.2.1 (SVN)
- Monitored by: » @PascalRiekenberg (Pascal Riekenberg)