summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/test/toperator4.pp
blob: ec325aebc85f81730a42e00823b9345712842c00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
unit toperator4;

interface

type
  op3 = record
    x,y : real;
  end;

operator + (const a,b : op3) c : op3;

implementation

operator + (const a,b : op3) c : op3;
begin
  c.x:=a.x+b.x;
  c.y:=a.y+b.y;
end;

end.