View Issue Details

IDProjectCategoryView StatusLast Update
0038083FPCCompilerpublic2020-11-15 17:54
ReporterOkobaPatino Assigned ToSven Barth  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version3.3.1 
Fixed in Version3.3.1 
Summary0038083: Overloading a generic method with the same name
DescriptionThis code does not compile with FPC Trunk with this message:
project1.lpr(12,19) Fatal: Syntax error, ")" expected but "," found


program Project1;
 
{$MODE Delphi}
 
  procedure Test<T>(A: T; B: Boolean); overload;
  begin
 
  end;
 
  procedure Test(A: String); overload;
  begin
    Test<String>(A, True);
  end;
 
begin
end.
Tagsgenerics
Fixed in Revision47424
FPCOldBugId
FPCTarget-
Attached Files

Activities

Sven Barth

2020-11-15 17:27

manager   ~0126964

Please test and close if okay

OkobaPatino

2020-11-15 17:54

reporter   ~0126966

Tested and works correctly.
Thank you.

Issue History

Date Modified Username Field Change
2020-11-15 12:35 OkobaPatino New Issue
2020-11-15 12:41 Sven Barth Tag Attached: generics
2020-11-15 17:27 Sven Barth Assigned To => Sven Barth
2020-11-15 17:27 Sven Barth Status new => resolved
2020-11-15 17:27 Sven Barth Resolution open => fixed
2020-11-15 17:27 Sven Barth Fixed in Version => 3.3.1
2020-11-15 17:27 Sven Barth Fixed in Revision => 47424
2020-11-15 17:27 Sven Barth FPCTarget => -
2020-11-15 17:27 Sven Barth Note Added: 0126964
2020-11-15 17:54 OkobaPatino Status resolved => closed
2020-11-15 17:54 OkobaPatino Note Added: 0126966