code tools don't understand generic without ancestor
Original Reporter info from Mantis: BeniBela @benibela
-
Reporter name: Benito van der Zander
Original Reporter info from Mantis: BeniBela @benibela
- Reporter name: Benito van der Zander
Description:
The code tools always show the "error: class without name" in the class below when pressing ctrl+space after the classname or after a variable of the (specialized) class.
A workaround seems to be to add an ancestor with class(TObject)
Steps to reproduce:
generic TSet<T_Value> = class
protected
reallength: longint;
data: array of T_Value;
public
procedure clear();
procedure insert(v: T_Value);
procedure remove(v: T_Value);
function contains(v: T_Value):boolean;
function count:longint;
end;
Mantis conversion info:
- Mantis ID: 14352
- Build: r21217
- Version: 0.9.27 (SVN)
- Fixed in version: 0.9.27 (SVN)
- Fixed in revision: 21273 (#bdb9e3c0)
- Target version: 1.0.0
- LazTarget: 0.9.28