diff --git a/chapters/scoping.tex b/chapters/scoping.tex index e7f981aff..e10d08a2c 100644 --- a/chapters/scoping.tex +++ b/chapters/scoping.tex @@ -145,6 +145,11 @@ \subsection{Composite Name Lookup}\doublelabel{composite-name-lookup} P.Q P; // Illegal, component 'P' prevents finding package 'P' .R R; // Legal, see next section S.Q Q; // Legal + + Y a; // Illegal, component 'Y' (below) prevents finding class 'Y' + Y.X b; // Illegal, component 'Y' (below) prevents finding package 'Y' + .Y c; // Legal, see next section + Real Y; end A; \end{lstlisting} \end{example}