procedure Scope2 is
Count,Index:Integer;
procedure Level1 is
Index,Count:Integer;
procedure Level2 is
Count:Integer;-- count from line 9
begin
Count:=Scope2.Count;--count from line 3
end Level2;
procedure Level2_Prime is
Data,Index,Count:Integer;
Outer_Index:Integer renames Scope2.Level1.Index;-- rename Scope2.Level1.Index as Outer_Index
begin
Count:=Index+-- count from line 15
Scope2.Level1.Count;-- count from line 6
Index:=-- index from line 15
Scope2.Level1.Index+-- index from line 6
Scope2.Index;-- index from line 3
Index:=-- index from line 17
Outer_Index+-- index from line 7
Scope2.Index;-- index from 4
end Level2_Prime;
begin
null;
end Level1;
procedure Other_Level1 is
begin
Count:=Index;--Both from line 4
end Other_Level1;
begin
Count:=Index;--Both from line 4
end Scope2;