View Issue Details

IDProjectCategoryView StatusLast Update
0024689FPCCompilerpublic2019-07-17 17:31
ReporterKverdeAssigned ToSven Barth 
PrioritynormalSeverityminorReproducibilityhave not tried
Status feedbackResolutionopen 
Product VersionProduct Build 
Target VersionFixed in Version 
Summary0024689: False appearance Hint from Generic
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;
Tagsgenerics
Fixed in Revision
FPCOldBugId
FPCTarget
Attached Files

Activities

Sven Barth

2015-10-02 15:05

manager   ~0086220

2.6.2 is an old version. Please test again with the 3.0.0 release candidate or trunk (3.1.1).

Regards,
Sven

rd0x

2019-07-17 17:31

reporter   ~0117282

guess this one can be closed?

Issue History

Date Modified Username Field Change
2013-06-29 14:52 Kverde New Issue
2015-09-28 16:44 Jonas Maebe Tag Attached: generics
2015-10-02 15:05 Sven Barth Note Added: 0086220
2015-10-02 15:05 Sven Barth Assigned To => Sven Barth
2015-10-02 15:05 Sven Barth Status new => feedback
2019-07-17 17:31 rd0x Note Added: 0117282