False appearance Hint from Generic
Original Reporter info from Mantis: Kverde
-
Reporter name:
Original Reporter info from Mantis: Kverde
- Reporter name:
Description:
// Lazarus 1.0.10 r41613 FPC 2.6.2 x86_64-win64-win32/win64
generic TTest<_T> = class
public
FField: _T;
procedure TestProc(AItem: _T); //Hint: Value parameter "AItem" is assigned but never used
end;
procedure TTest.TestProc(AItem: _T);
begin
if FField = AItem then // use AItem
raise Exception.Create('Error')
else
Sleep(100);
end;
Mantis conversion info:
- Mantis ID: 24689