summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/webtbs/tw18420.pp
blob: 28147720cc205dc2f833aaf5467e0ab16ae5294e (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
25
unit tw18420;

{$mode objfpc}{$H+}

interface

type
  generic TGC<T> = class
    Value: T;
    procedure M;
  end;

  TGI = specialize TGC<Integer>;

implementation

procedure TGC.M;
var
  s: String;
begin
  Str(Value,s);
  Val(s,Value);
end;

end.