Codetool fails in inherited nested class.
Original Reporter info from Mantis: Martin @martin_frb
-
Reporter name: Martin Friebe
Original Reporter info from Mantis: Martin @martin_frb
- Reporter name: Martin Friebe
Description:
In unit1 declare
type
TFoo = class
protected type
TBar = class
procedure SomeBar1; virtual;
end;
end;
In another unit/program
type
TFooNew = class(TFoo)
protected type
TBar2 = TBar;
TBarNew = class(TBar2) // Fpc 3.0.4 can not use TBar here, but accepts TBar2
Some
end;
end;
CodeCompletion on Some is excepted to propose "procedure SomeBar1; override", but fails with
project1.lpr(8,13) Error: identifier not found: TBar
Also if you put "procedure SomeBar1; override" in place yourself, and try class completion, the same error occurs.
Codetool works, if you do "TBarNew = class(TBar)", but fpc 3.0.4 can not compile that.
Mantis conversion info:
- Mantis ID: 37686
- OS: win 10
- OS Build: 10
- Platform: 64bit Intel
- Version: 2.1 (SVN)