Compiler generates incorrect warning with (record) functions that return a record type
Original Reporter info from Mantis: Thaddy
-
Reporter name: Thaddy de Koning
Original Reporter info from Mantis: Thaddy
- Reporter name: Thaddy de Koning
Description:
e.g. function TPoint.Add(const aPoint:Tpoint):TPoint;
begin
Result.SetLocation(self.x+aPoint.X, self.Y+aPoint.Y);
end;
results in a "Warning: Function variable does not seem to be set" which is incorrect in the context of records.
Mantis conversion info:
- Mantis ID: 23667
- OS: All
- Platform: All
- Version: 2.7.1
- Fixed in version: 3.0.0
- Fixed in revision: 23976 (#1601f6be)