codetools: tests: generics

git-svn-id: trunk@50349 -
This commit is contained in:
mattias 2015-11-16 22:23:22 +00:00
parent 399acc7c84
commit c14048ae32

View File

@ -19,8 +19,11 @@ type
CustomName: GenParam2;
end;
{ TGenAction }
generic TGenAction<GenParam3> = class(specialize TGenCustomAction{declaration:fdt_generics.TGenCustomAction}<GenParam3>)
ActionName: GenParam3;
procedure InitActionName;
end;
TIntegerAction = specialize TGenAction<integer>;
@ -34,5 +37,12 @@ begin
Action.ActionName{declaration:fdt_generics.TGenAction.ActionName}:=3;
end;
{ TGenAction }
procedure TGenAction.InitActionName;
begin
ActionName{declaration:fdt_generics.TGenAction.ActionName}:=3;
end;
end.