fpc/tests/ts010019.pp
1998-11-10 11:13:06 +00:00

37 lines
431 B
ObjectPascal

procedure test;
function a : longint;
begin
a:=1;
end;
begin
writeln('a = ',a);
end;
procedure test(b : byte);
function a : longint;
begin
a:=2;
end;
begin
writeln('b = ',b);
writeln('a = ',a);
end;
type a = word;
function test_(b : a) : longint;
begin
test_:=b;
end;
begin
test(1);
test;
test(4);
end.