0
Planned

False positive W521 for record results even though the record is being fully initialized

dummzeuch 10 years ago updated by Roman 10 years ago 1

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.