Skip to content

Commit dc5f593

Browse files
committed
Add missing cases to the definition of interface types
1 parent a63225b commit dc5f593

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

specification/dartLangSpec.tex

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25212,7 +25212,7 @@ \subsection{Least and Greatest Closure of Types}
2521225212
where $U$ is the greatest closure of $T$ with respect to $L$.
2521325213
\end{itemize}
2521425214
\item
25215-
If $S$ is an interface type of the type \code{$C$<\List{T}{1}{k}>} then
25215+
If $S$ is an interface type of the form \code{$C$<\List{T}{1}{k}>} then
2521625216
\begin{itemize}
2521725217
\item
2521825218
the least closure of $S$ with respect to $L$ is \code{$C$<\List{U}{1}{k}>},
@@ -25393,6 +25393,7 @@ \subsection{Class Building Types}
2539325393
\begin{itemize}
2539425394
\item $T$ is \VOID{} (\ref{typeVoid}).
2539525395
\item $T$ is \DYNAMIC{} (\ref{typeDynamic}).
25396+
% TODO(eernst): Come newer versions, remove all sealed classes from here.
2539625397
\item
2539725398
$T$ is \code{Never}, \code{Null}, \code{num}, \code{int}, \code{double},
2539825399
\code{bool}, or \code{String}.
@@ -25423,7 +25424,12 @@ \subsection{Interface Types}
2542325424
We say that $T$ is an \Index{interface type} if{}f
2542425425
$T'$ is of the form \code{$C$<\List{T}{1}{k}>},
2542525426
where $C$ denotes a class different from \code{Never} and \code{Null},
25426-
or $C$ denotes a mixin.
25427+
% TODO(eernst): Add mixin classes when supported
25428+
or $C$ denotes a mixin
25429+
(\ref{mixins}),
25430+
or an enumerated type
25431+
(\ref{enums}).
25432+
% TODO(eernst): Add extension types when supported
2542725433

2542825434
\commentary{%
2542925435
Note that \List{T}{1}{k} can be arbitrary types.

0 commit comments

Comments
 (0)