A/V on compilation for interface type helper with generic method
Original Reporter info from Mantis: mr-highball
-
Reporter name: Highball
Original Reporter info from Mantis: mr-highball
- Reporter name: Highball
Description:
So I'm not 100% where this falls or if I have something wrong, but to try and circumvent the restriction of no generic methods in interfaces, I've tried to declare an interface type helper with a generic method. At first, this compiled just fine because the method had no arguments, but as soon as I added a method with an argument, the A/V occurs when attempting to compile.
Also to note, FPC does not seem to like my example at all (even the parameter-less method) since it produces the following errors:
Compile Project, Mode: standard, Target: project1.exe: Exit code 1, Errors: 4
project1.lpr(25,31) Error: Identifier not found "helper"
project1.lpr(25,38) Error: Error in type definition
project1.lpr(25,38) Error: Can't create unique type from this type
project1.lpr(25,38) Fatal: Syntax error, ";" expected but "FOR" found
the attached project has two build modes, browser & standard (windows). the browser target fails when uncommenting line 46 but builds with it commented out.
Mantis conversion info:
- Mantis ID: 37896
- Fixed in revision: 47242 47243