Normal compilation in the declaration "TFoo<K, V>" with implementation "TFoo<TKey, TValue>"
Original Reporter info from Mantis: silvioprog
-
Reporter name: silvioprog
Original Reporter info from Mantis: silvioprog
- Reporter name: silvioprog
Description:
Hello,
Please see this attached example. If you try to compile it on Delphi (I've tested on Delphi Berlin), you may get the following errors:
[dcc32 Error] project1.dpr(20): E2037 Declaration of 'TFoo&LtPos;K,V>' differs from previous declaration [dcc32 Error] project1.dpr(22): E2075 This form of method call only allowed in methods of derived types [dcc32 Error] project1.dpr(17): E2065 Unsatisfied forward or external declaration: 'TFoo&LtPos;K,V>.Create'
but on FPC (latest trunk version) it compiles fine.
I'm just sharing it, but I don't know if it is a bug in Delphi or FPC.
Mantis conversion info:
- Mantis ID: 30474
- Version: 3.1.1