CodeTools choke on operators that are only overloaded by result type
Original Reporter info from Mantis: PascalDragon @PascalDragon
-
Reporter name: Sven Barth
Original Reporter info from Mantis: PascalDragon @PascalDragon
- Reporter name: Sven Barth
Description:
Unlike normal functions operators are allowed to differ only by result type. The CodeTools choke on this however.
When doing a class completion on such a record the error is "procedure redefined". And if I declare them manually the IDE won't jump to the correct implementation necessarily.
Steps to reproduce:
- Use the attached file.
- Try class completion on TTest; will result in error "proceduer redefined"
- Jumping between declaration and implementation of first operator overload works
- Jumping from declaration of second operator to implementation will result in the cursor being positioned at the result type of the first operator's implementation
- Jumping from implementation of the second operator to declaration will result in the cursor being positioned at the result type of the first operator's declaration
Additional information:
This compiles and runs correctly with FPC 3.0.0 (in 2.6.4 there might still be an error).
Version should be 1.6RC2
Mantis conversion info:
- Mantis ID: 29430
- OS: Windows NT
- OS Build: 10
- Platform: X86_64
- Version: 1.6RC1