summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/webtbs/uw17950.pas
blob: af9f64d38c66891e5d5c1501bdf7b026e6b1199f (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
29
unit uw17950; 

{$mode delphi}

interface

implementation

type
  TFoo1 = class;

  TFoo1 = class
  public
    type
      TFoo2 = object
      private
        FField2: integer;
      end;
    public
      function GetFoo2: TFoo2;
  end;

function TFoo1.GetFoo2: TFoo2;
begin
  result.FField2 := 5;
end;

end.