Skip to content

Commit a438b2f

Browse files
committed
Add missing cases to the definition of interface types
1 parent aed32df commit a438b2f

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
@@ -25160,7 +25160,7 @@ \subsection{Least and Greatest Closure of Types}
2516025160
where $U$ is the greatest closure of $T$ with respect to $L$.
2516125161
\end{itemize}
2516225162
\item
25163-
If $S$ is an interface type of the type \code{$C$<\List{T}{1}{k}>} then
25163+
If $S$ is an interface type of the form \code{$C$<\List{T}{1}{k}>} then
2516425164
\begin{itemize}
2516525165
\item
2516625166
the least closure of $S$ with respect to $L$ is \code{$C$<\List{U}{1}{k}>},
@@ -25341,6 +25341,7 @@ \subsection{Class Building Types}
2534125341
\begin{itemize}
2534225342
\item $T$ is \VOID{} (\ref{typeVoid}).
2534325343
\item $T$ is \DYNAMIC{} (\ref{typeDynamic}).
25344+
% TODO(eernst): Come newer versions, remove all sealed classes from here.
2534425345
\item
2534525346
$T$ is \code{Never}, \code{Null}, \code{num}, \code{int}, \code{double},
2534625347
\code{bool}, or \code{String}.
@@ -25371,7 +25372,12 @@ \subsection{Interface Types}
2537125372
We say that $T$ is an \Index{interface type} if{}f
2537225373
$T'$ is of the form \code{$C$<\List{T}{1}{k}>},
2537325374
where $C$ denotes a class different from \code{Never} and \code{Null},
25374-
or $C$ denotes a mixin.
25375+
% TODO(eernst): Add mixin classes when supported
25376+
or $C$ denotes a mixin
25377+
(\ref{mixins}),
25378+
or an enumerated type
25379+
(\ref{enums}).
25380+
% TODO(eernst): Add extension types when supported
2537525381

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

0 commit comments

Comments
 (0)