summaryrefslogtreecommitdiff
path: root/tests/webtbf/tw13956.pp
blob: 1eb74a67617fb125d1766f8baf1b3fd7b1127470 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ %fail }

{$ifdef fpc}
{$mode objfpc}{$H+}
{$endif}

type
  { TForm1 }
  TForm1 = class
  private
    function GetFoo(Index: Integer; Ask: Boolean = True): Integer;
  public
    property Foo[Index: Integer; Ask: Boolean]: Integer read GetFoo;
  end; 

function TForm1.GetFoo(Index: Integer; Ask: Boolean): Integer;
begin
  Result := Foo[Index];
end;

begin
end.