It is not posible to create generic helper method in objfpc mode but only in delphi mode
Original Reporter info from Mantis: imants_gulbis
-
Reporter name: Imants Gulbis
Original Reporter info from Mantis: imants_gulbis
- Reporter name: Imants Gulbis
Description:
When I try to create generic method in helper class I got
Example:
TObjectHelper = class helper for TObject
public
generic function Test<T>(): String;
end;
"An interface, helper or Objective-C protocol or category cannot contain fields"
If I switch to delphi mode and delete generic all works.
Mantis conversion info:
- Mantis ID: 35735
- Version: 3.2.0
- Fixed in version: 3.3.1
- Fixed in revision: 42328 (#d0eddbcb)
- Monitored by: » imants_gulbis (Imants Gulbis), » @MageSlayer (Denis Golovan)