Functional parameter problem
Original Reporter info from Mantis: Adriaan van Os
-
Reporter name: Adriaan van Os
Original Reporter info from Mantis: Adriaan van Os
- Reporter name: Adriaan van Os
Description:
The following no longer compiles and produces error
FunctionalParameterBug.p:12: error: 11: function header doesn't match the previous declaration "Iterate(const&LtPos;procedure variable type of function(Pointer):SmallInt;MWPascal>)"
{$mode macpas}
{$calling mwpascal}
unit FunctionalParameterBug;
interface
procedure Iterate( function theCallback( theDataPtr: Pointer): Integer);
implementation
procedure Iterate( function theCallback( theDataPtr: Pointer): Integer); begin end;
end.
I believe, this used to work in previous svn revisions (or at least in a previous compiler release)
Mantis conversion info:
- Mantis ID: 11254
- Version: 2.3.1
- Fixed in version: 2.2.2
- Fixed in revision: 10916 (#36d2f0e0)
- Target version: 2.2.2