summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/webtbs/tw17952a.pp
blob: 033f39ddc521d04de0d9438be0bd314ccdca5726 (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 tw17952a;
{$mode delphi}

// check visibility of nested types in method headers

type
  TFoo1 = class
  public
    type
      TFoo2 = object
      end;
      TFoo3 = object
        procedure Proc(value: TFoo2);
      end;
  end;

procedure TFoo1.TFoo3.Proc(value: TFoo2); // was error: Identifier not found "TFoo2"
begin
end;

begin
end.