mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 12:39:29 +02:00
codetools: tests: generics
git-svn-id: trunk@50349 -
This commit is contained in:
parent
399acc7c84
commit
c14048ae32
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user