Compiler doesn't generate an error if a statement is just getting the address of a method
Original Reporter info from Mantis: Vincent
-
Reporter name: Vincent Snijders
Original Reporter info from Mantis: Vincent
- Reporter name: Vincent Snijders
Description:
Given the following declarations:
type
TMyObject = class
private
procedure Test;
end;
var
c: TMyObject;
The compiler doesn't generate an error on the following line, even though it is not a correct statement:
@C.Test;
Steps to reproduce:
Compile attached program.
Additional information:
See: http://lists.freepascal.org/lists/fpc-pascal/2009-October/022885.html
Mantis conversion info:
- Mantis ID: 14945
- OS: Windows
- OS Build: XP Home SP2
- Platform: i386
- Version: 2.5.1