mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-04 13:50:36 +02:00
* using a nested function
This commit is contained in:
parent
76f5fbd7db
commit
44334710e6
@ -3,13 +3,21 @@ unit ub0461;
|
|||||||
interface
|
interface
|
||||||
procedure p1;inline;
|
procedure p1;inline;
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
procedure p1;inline;
|
procedure p1;inline;
|
||||||
var
|
var
|
||||||
i,k : longint;
|
i,k : longint;
|
||||||
|
|
||||||
|
procedure f;
|
||||||
|
begin
|
||||||
|
i:=20;
|
||||||
|
k:=i*10;
|
||||||
|
writeln('hello ',k);
|
||||||
|
end;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
i:=20;
|
f;
|
||||||
k:=i*10;
|
|
||||||
writeln('hello ',k);
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user