You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
239 B
Plaintext
18 lines
239 B
Plaintext
9 months ago
|
{ This program does a lot of shadowing }
|
||
|
PROGRAM shadowing;
|
||
|
|
||
|
function x (a : integer) : integer;
|
||
|
begin
|
||
|
x := a
|
||
|
end;
|
||
|
|
||
|
function a (b : integer) : integer;
|
||
|
var x : integer;
|
||
|
begin
|
||
|
x := b;
|
||
|
a := x
|
||
|
end;
|
||
|
|
||
|
begin
|
||
|
writeln(a(x(4)))
|
||
|
end.
|