Skip to content

Commit

Permalink
Add SameName example in same style.
Browse files Browse the repository at this point in the history
  • Loading branch information
HansOlsson committed Jun 19, 2020
1 parent 85b0b13 commit a42a2a7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions chapters/scoping.tex
Expand Up @@ -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}
Expand Down

0 comments on commit a42a2a7

Please sign in to comment.