The syntax shown in the syntax diagrams is the syntax required in the ObjFPC mode of the compiler. However, in Delphi mode, the specialize and generic keywords must not be used, as shown in the following example:
In difference with Mode Objfpc, the template type names must be repeated in method definitions.
This requirement is directly related to the generic type overload capability mentioned in the next section.