overloading doesn't works in generic declarations
Original Reporter info from Mantis: impfp
-
Reporter name:
Original Reporter info from Mantis: impfp
- Reporter name:
Description:
overloading in FPC 2.4.2 doesn't works in generic declarations, but in previous version (FPC 2.4.0) it still works.
Steps to reproduce:
{$mode objfpc}
type
generic A<_T> = class
public
constructor Create; overload;
constructor Create(x: specialize A<_T>); overload; // Here is an error now
end;
constructor A.Create(x: specialize A<_T>);
begin end;
constructor A.Create; overload;
begin end;
begin end.
Mantis conversion info:
- Mantis ID: 17938
- OS: Windows
- OS Build: XP
- Platform: Win32
- Version: 2.4.2
- Monitored by: » impfp (impfp), » luizamerico (Luiz Americo)