CodeTools and Generics: Ctrl+Click and Ctrl+Space not working
Original Reporter info from Mantis: demerson3
-
Reporter name: David Emerson
Original Reporter info from Mantis: demerson3
- Reporter name: David Emerson
Description:
When specializing a generic class with a type identifier which is itself a class or record type, CodeTools seems not to be aware of that type. I get an "Error: Illegal qualifier . found" and neither ctrl+space completion nor ctrl+click navigation works.
Here's some code to exemplify:
type
t_color = record r,g,b:byte; end;
generic gtx <_some_class> = class (tobject)
x : _some_class;
end;
t_x_obj = specialize gtx <tobject>;
t_x_color = specialize gtx <t_color>;
var
some_blue : t_color = (r:0; g:0; b:255);
x_obj : t_x_obj;
x_color : t_x_color;
begin
x_obj := t_x_obj.Create;
x_obj.x := tobject.Create;
x_obj.x.free; // <-- cannot ctrl+space complete "free"
x_color := t_x_color.Create;
x_color.x := some_blue;
x_color.x.b := 196; // <-- cannot ctrl+click "b"
writeln (x_color.x.b);
end.
Mantis conversion info:
- Mantis ID: 18373
- Version: 0.9.29 (SVN)
- Fixed in revision: r32016 (#52a0ff3f)
- Monitored by: » demerson3 (David Emerson), » Penilopa P (Anton)