View Issue Details

IDProjectCategoryView StatusLast Update
0037261FPCCompilerpublic2020-06-30 22:37
Reporterdmz73 Assigned ToFlorian  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Platformx86_64OSWindows 
Product Version3.2.0 
Fixed in Version3.3.1 
Summary0037261: Error: Procedure directive "REINTRODUCE" not allowed in implementation section
DescriptionWhen class with generic function is defined in a project file compiler will report above error if a procedure is reintroduced.
Steps To ReproduceCompile the following example project:

program Project1;

{$mode delphi}

type

  { TClass }

  TClass = class
  public
    class function ToString<T>(A: T; B: string): string; reintroduce;
  end;

{ TClass }

class function TClass.ToString<T>(A: T; B: string): string;
begin end;

begin
  TClass.ToString<integer>(1, '');
end.
Tagsgenerics
Fixed in Revision37261
FPCOldBugId
FPCTarget-
Attached Files

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-06-26 05:26 dmz73 New Issue
2020-06-26 07:13 Cyrax Tag Attached: generics
2020-06-30 22:37 Florian Assigned To => Florian
2020-06-30 22:37 Florian Status new => resolved
2020-06-30 22:37 Florian Resolution open => fixed
2020-06-30 22:37 Florian Fixed in Version => 3.3.1
2020-06-30 22:37 Florian Fixed in Revision => 37261
2020-06-30 22:37 Florian FPCTarget => -