Skip to content

Commit 1a63542

Browse files
committed
Add missing cases to the definition of interface types
1 parent ff23428 commit 1a63542

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
@@ -25144,7 +25144,7 @@ \subsection{Least and Greatest Closure of Types}
2514425144
where $U$ is the greatest closure of $T$ with respect to $L$.
2514525145
\end{itemize}
2514625146
\item
25147-
If $S$ is an interface type of the type \code{$C$<\List{T}{1}{k}>} then
25147+
If $S$ is an interface type of the form \code{$C$<\List{T}{1}{k}>} then
2514825148
\begin{itemize}
2514925149
\item
2515025150
the least closure of $S$ with respect to $L$ is \code{$C$<\List{U}{1}{k}>},
@@ -25325,6 +25325,7 @@ \subsection{Class Building Types}
2532525325
\begin{itemize}
2532625326
\item $T$ is \VOID{} (\ref{typeVoid}).
2532725327
\item $T$ is \DYNAMIC{} (\ref{typeDynamic}).
25328+
% TODO(eernst): Come newer versions, remove all sealed classes from here.
2532825329
\item
2532925330
$T$ is \code{Never}, \code{Null}, \code{num}, \code{int}, \code{double},
2533025331
\code{bool}, or \code{String}.
@@ -25355,7 +25356,12 @@ \subsection{Interface Types}
2535525356
We say that $T$ is an \Index{interface type} if{}f
2535625357
$T'$ is of the form \code{$C$<\List{T}{1}{k}>},
2535725358
where $C$ denotes a class different from \code{Never} and \code{Null},
25358-
or $C$ denotes a mixin.
25359+
% TODO(eernst): Add mixin classes when supported
25360+
or $C$ denotes a mixin
25361+
(\ref{mixins}),
25362+
or an enumerated type
25363+
(\ref{enums}).
25364+
% TODO(eernst): Add extension types when supported
2535925365

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

0 commit comments

Comments
 (0)