[codetools] Procedural function variable which returns a class, with statement and "Find declaration" mishaps.
Original Reporter info from Mantis: Cyrax
-
Reporter name:
Original Reporter info from Mantis: Cyrax
- Reporter name:
Description:
Trying to execute "Find declaration" functionality inside with statement where the variable reference is procedural variable which returns a class instance, causes CodeTools error out with this message :
Codetools, Errors: 1 project1.lpr(19,8) Error: expression type must be class or record type
See Steps To Reproduce, Additional Information and attached project file for more info.
Steps to reproduce:
- Open attached file in Lazarus.
- Go to line 19, column 8 and do "Find declaration".
- Observe the error message in the message window.
Additional information:
FPC and Lazarus was built with these options:
Lazarus revision 51462 FPC revision 33035 FPC make commands: clean all install OPT=-gw2 -godwarfsets -godwarfmethodclassprefix -gl -O- -Xs- -Si- -vbq -dTEST_WIN32_SEH COMPILER_OPTIONS=-gw2 -godwarfsets -godwarfmethodclassprefix -gl -O- -Xs- -Si- -vbq -dTEST_WIN32_SEH OS_TARGET=win32 CPU_TARGET=i386 REVSTR=33035 UPXPROG=echo IDE=1 NOWPOCYCLE=1 INSTALL_PREFIX=j:\free_pascal_and_lazarus_new4\fpc\i386\win32\binary\3.1.1\fpc_trunk\trunk Lazarus make commands: clean all OPT=-gw2 -godwarfsets -godwarfmethodclassprefix -gl -gh -O- -Si- -vb -dHEAPTRC_WINDOW -dDBG_WITH_DEBUGGER_DEBUG UPXPROG=echo USESVN2REVISIONINC=0
Mantis conversion info:
- Mantis ID: 29565
- Assignee Gitlab user: @PascalRiekenberg
- Assignee Mantis username: PascalR
- Assignee name: Pascal Riekenberg
- OS: Server 2008 R2
- OS Build: 6.1.7601 (SP1)
- Build: r51462
- Platform: Windows
- Version: 1.5 (SVN)