AssignFile() issues a false hint.
Original Reporter info from Mantis: Yiannis Dondos
-
Reporter name: Yiannis Dondos
Original Reporter info from Mantis: Yiannis Dondos
- Reporter name: Yiannis Dondos
Description:
If you compile the following code with the -Mobjfpc or -Mdelphi option, a false hint is issued. A similar matter with Assign() was resolved in #8824 (closed).
program assignfile;
var
f: TextFile;
begin
AssignFile (f, 'test.dat'); // Hint: Variable does not seem to be initialized
Reset (f);
CloseFile (f);
end.
Mantis conversion info:
- Mantis ID: 9275
- Version: 2.2.0
- Fixed in version: 2.2.2
- Fixed in revision: 8481 (#bab3eb42)