Overloading a generic method with the same name
Original Reporter info from Mantis: okobapatino @OkobaPatino
-
Reporter name: OkobaPatino
Original Reporter info from Mantis: okobapatino @OkobaPatino
- Reporter name: OkobaPatino
Description:
This 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.
Mantis conversion info:
- Mantis ID: 38083
- Version: 3.3.1
- Fixed in version: 3.3.1
- Fixed in revision: 47424 (#3d2ee097)
- Monitored by: » @OkobaPatino (OkobaPatino)