summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/webtbs/tw9827.pp
blob: ba42512298785d7cf05a606962ce618aa9e1cd93 (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
26
27
28
{$mode objfpc}

type
  generic GList<_T> = class
    private
      var
        i : integer;
    function some_func(): integer;
  end;

function GList.some_func(): integer;
begin
  i := -1;
  Result := -1;
end { some_func };


type
  TA = specialize GList<integer>;
var
  A : TA;

begin
  A:=TA.Create;
  if A.some_func<>-1 then
    halt(1);
  writeln('ok');
end.