blob: fb5fe1e8f5b6974acd7787c6463e5dd11552c578 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
program tgeneric18;
{$mode objfpc}{$H+}
type
{ TFirstGeneric }
generic TFirstGeneric<T> = class(TObject)
end;
{ TSecondGeneric }
generic TSecondGeneric<T> = class(TObject)
public
type
TFirstGenericType = specialize TFirstGeneric<T>;
end;
var
Second: specialize TSecondGeneric<string>;
begin
end.
|