summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/tbs/tb0346.pp
blob: c43914e3e6b8eb4823e2b35396a05505e68f11aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ %version=1.1 }

{$MODE DELPHI}
type
aClass=class
 private
  aa:longint;
  procedure bb(index:integer;value:longint);
 public
  property cc:longint index 1 read aa write bb;
end;
procedure AClass.bb(index:integer;value:longint);
 begin
  aa:=value;
 end;
var
 C:aClass;
begin
 C:=aClass.Create;
 C.cc:=1;
 writeln(C.cc);
end.