Compiling generics with overloaded methods fails
Original Reporter info from Mantis: hinst
-
Reporter name:
Original Reporter info from Mantis: hinst
- Reporter name:
Description:
Compiling generics with overloaded methods fails, compiler returns syntax error
like this:
C:\Users\hinst\Documents\programming\EPCL\exList.pas(173,14) Error: function header doesn't match the previous declaration "TGenericList.Add(const &LtPos;undefined type>):LongInt;"
C:\Users\hinst\Documents\programming\EPCL\exList.pas(166,14) Hint: Found declaration: TGenericList.Add(const &LtPos;undefined type>):LongInt;
Steps to reproduce:
Just write a generic with overloaded method
Mantis conversion info:
- Mantis ID: 17979
- OS: Windows
- OS Build: Seven 64 bit
- Build: from Lazarus 28309 at 2010.11.18
- Platform: Win32
- Version: 2.5.1