Skip to content

Commit 2ec1bfd

Browse files
committed
Add missing cases to the definition of interface types
1 parent 738cfa2 commit 2ec1bfd

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
@@ -24959,7 +24959,7 @@ \subsection{Least and Greatest Closure of Types}
2495924959
where $U$ is the greatest closure of $T$ with respect to $L$.
2496024960
\end{itemize}
2496124961
\item
24962-
If $S$ is an interface type of the type \code{$C$<\List{T}{1}{k}>} then
24962+
If $S$ is an interface type of the form \code{$C$<\List{T}{1}{k}>} then
2496324963
\begin{itemize}
2496424964
\item
2496524965
the least closure of $S$ with respect to $L$ is \code{$C$<\List{U}{1}{k}>},
@@ -25140,6 +25140,7 @@ \subsection{Class Building Types}
2514025140
\begin{itemize}
2514125141
\item $T$ is \VOID{} (\ref{typeVoid}).
2514225142
\item $T$ is \DYNAMIC{} (\ref{typeDynamic}).
25143+
% TODO(eernst): Come newer versions, remove all sealed classes from here.
2514325144
\item
2514425145
$T$ is \code{Never}, \code{Null}, \code{num}, \code{int}, \code{double},
2514525146
\code{bool}, or \code{String}.
@@ -25170,7 +25171,12 @@ \subsection{Interface Types}
2517025171
We say that $T$ is an \Index{interface type} if{}f
2517125172
$T'$ is of the form \code{$C$<\List{T}{1}{k}>},
2517225173
where $C$ denotes a class different from \code{Never} and \code{Null},
25173-
or $C$ denotes a mixin.
25174+
% TODO(eernst): Add mixin classes when supported
25175+
or $C$ denotes a mixin
25176+
(\ref{mixins}),
25177+
or an enumerated type
25178+
(\ref{enums}).
25179+
% TODO(eernst): Add extension types when supported
2517425180

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

0 commit comments

Comments
 (0)