can't compile generic function
Original Reporter info from Mantis: Nicky
-
Reporter name: Nick
Original Reporter info from Mantis: Nicky
- Reporter name: Nick
Description:
Error:
Fatal: Syntax error, ":" expected but "<" found
Steps to reproduce:
type
TTest<T: TObject> = class
function AddNew<Clazz: T>(): Clazz;
end;
Additional information:
{$mode delphi}
Mantis conversion info:
- Mantis ID: 29052
- OS: windows
- OS Build: 7
- Build: RC2
- Platform: intel
- Version: 3.0.0