compile error when attempting recursion in generic function
Original Reporter info from Mantis: mr-highball
-
Reporter name: Highball
Original Reporter info from Mantis: mr-highball
- Reporter name: Highball
Description:
I'm unable to recurse inside of a generic function either with the same generic type, or different type (see attached project)
procedures seem to compile fine.
original forum post,
https://forum.lazarus.freepascal.org/index.php/topic,47936.0.html
Steps to reproduce:
* open tester.lpr
* uncomment one of these two method calls from "function TestGenRecurse&LtPos;T>"
//TestGenRecurse<T>(AInput);
//TestGenRecurse<String>('test');
* attempt to compile
Additional information:
* When testing I used latest trunk as of today
* using mode delphi
Mantis conversion info:
- Mantis ID: 36496
- Fixed in version: 3.3.1
- Fixed in revision: 43823 (#3e7dc256)