CodeTools: manually renaming class leads to problems
Original Reporter info from Mantis: PascalDragon @PascalDragon
-
Reporter name: Sven Barth
Original Reporter info from Mantis: PascalDragon @PascalDragon
- Reporter name: Sven Barth
Description:
When manually renaming a class (thus not using the "Search or Rename Identifier" dialog) there is a problem when trying to use code completion on the class name of the method definition.
Steps to reproduce:
Take this code ('|' denotes the cursor position):
=== code begin ===
unit foo;
interface
type
TBar = class
procedure Test;
end;
implementation
procedure T|Test.Test;
begin
end;
end.
=== code end ===
Press control space to invoke code completion.
Expected result: Completion window appears with at least TBar in it (or it already autocompletes to TBar... whatever)
Actual result: CodeTools errors occurs: "Error: Class TTest not found"
Additional information:
It works correctly in the following case ('|' denotes the cursor position):
=== code begin ===
unit foo;
interface
type
TBar = class
procedure Test;
end;
implementation
procedure TBar.Test;
begin
T|Test
end;
end.
=== code end ===
So it's a bit inconsistent from a user's point of view...
Mantis conversion info:
- Mantis ID: 35804
- OS: Windows NT
- OS Build: 10
- Build: 61508
- Platform: X86_64
- Version: 2.1 (SVN)