JEDI Code Formatter fails with generics
Original Reporter info from Mantis: Wilfredo
-
Reporter name: Wilfredo Pomier
Original Reporter info from Mantis: Wilfredo
- Reporter name: Wilfredo Pomier
Description:
Simple generics syntax are treated correctly in JEDI, but special cases are not. Example: Cannot Increase functionallity to any generic class in FGL creating sub generic classes.
Steps to reproduce:
Example:
Change KeyData to return nil when Key not found instead raise exception.
Type
generic TPiMap<K, T> = class(specialize TFPGMap<K, T>)
private
function GetKeyData(const AKey: TKey): T;
procedure SetKeyData(const AKey: K; const NewData: T);
public
property KeyData[const AKey: K]: T read GetKeyData write SetKeyData;
default;
end;
(Implementation is trivial)
Mantis conversion info:
- Mantis ID: 30681
- OS: Any
- OS Build: Any
- Platform: Any
- Version: 1.6
- Monitored by: » d3rit (Derit Agustin)