Cleanup and fixes
This commit is contained in:
parent
df119b1995
commit
f54f4b449d
@ -61,10 +61,10 @@ Our type inference algorithm has to add let statements surrounding method invoca
|
|||||||
\end{subfigure}
|
\end{subfigure}
|
||||||
~
|
~
|
||||||
\begin{subfigure}[t]{0.49\linewidth}
|
\begin{subfigure}[t]{0.49\linewidth}
|
||||||
\begin{lstlisting}[style=tfgj]
|
\begin{lstlisting}[style=tfgj]
|
||||||
List<? super Integer> ls = ...;
|
List<? super Integer> ls = ...;
|
||||||
ls.add(new Integer());
|
let x : (*@ $\wctype{\wildcard{X}{\texttt{Object}}{\texttt{Integer}}}{List}{\rwildcard{X}}$ @*) = ls in ls.add(new Integer());
|
||||||
\end{lstlisting}
|
\end{lstlisting}
|
||||||
\caption{Capture Conversion by \texttt{let}-statement}
|
\caption{Capture Conversion by \texttt{let}-statement}
|
||||||
\label{fig:intro-example-typed}
|
\label{fig:intro-example-typed}
|
||||||
\end{subfigure}
|
\end{subfigure}
|
||||||
|
@ -21,8 +21,6 @@ $
|
|||||||
Each class type has a set of wildcard types $\overline{\Delta}$ attached to it.
|
Each class type has a set of wildcard types $\overline{\Delta}$ attached to it.
|
||||||
The type $\wctype{\overline{\Delta}}{C}{\ol{T}}$ defines a set of wildcards $\overline{\Delta}$,
|
The type $\wctype{\overline{\Delta}}{C}{\ol{T}}$ defines a set of wildcards $\overline{\Delta}$,
|
||||||
which can be used inside the type parameters $\ol{T}$.
|
which can be used inside the type parameters $\ol{T}$.
|
||||||
It is important that each wildcard declaration $\wildcard{X}{T}{L}$ is unique.
|
|
||||||
|
|
||||||
|
|
||||||
\section{Type rules}
|
\section{Type rules}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user