summaryrefslogtreecommitdiff
path: root/tests/webtbf/tw4619a.pp
blob: 4c47a4b3aabbc74c5fdecc8f4bb634944d0252f1 (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
{ %fail }

{ Source provided for Free Pascal Bug Report 4619 }
{ Submitted by "Christian Iversen" on  2005-12-19 }
{ e-mail: chrivers@iversen-net.dk }

{$mode delphi}

type
  TStatement = class
  end;

  TBlock = class(TStatement)
  protected
    // The parameter must be Integer instead of LongWord
    function GetStat(const Index: LongWord): TStatement;
  public
    property Statement1: TStatement index 1 read GetStat;
  end;

    function TBlock.GetStat(const Index: LongWord): TStatement;
begin
end;

begin
end.