
0
Planned
False positive W521 for record results even though the record is being fully initialized
type
TMatrix = array[0..2, 0..2] of Extended;
function TSomeObject.GetIdentity: TMatrix;
var
X, Y: Integer;
begin
for Y := 0 to 2 do
for X := 0 to 2 do
if X = Y then
Result[X, Y] := 1
else
Result[X, Y] := 0;
end;
I realize this is very difficult to fix.

0
Planned
Roman 10 years ago
Customer support service by UserEcho