Skip to content

Commit 19d5d68

Browse files
committed
Add missing cases to the definition of interface types
1 parent 6649b02 commit 19d5d68

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
@@ -25148,7 +25148,7 @@ \subsection{Least and Greatest Closure of Types}
2514825148
where $U$ is the greatest closure of $T$ with respect to $L$.
2514925149
\end{itemize}
2515025150
\item
25151-
If $S$ is an interface type of the type \code{$C$<\List{T}{1}{k}>} then
25151+
If $S$ is an interface type of the form \code{$C$<\List{T}{1}{k}>} then
2515225152
\begin{itemize}
2515325153
\item
2515425154
the least closure of $S$ with respect to $L$ is \code{$C$<\List{U}{1}{k}>},
@@ -25329,6 +25329,7 @@ \subsection{Class Building Types}
2532925329
\begin{itemize}
2533025330
\item $T$ is \VOID{} (\ref{typeVoid}).
2533125331
\item $T$ is \DYNAMIC{} (\ref{typeDynamic}).
25332+
% TODO(eernst): Come newer versions, remove all sealed classes from here.
2533225333
\item
2533325334
$T$ is \code{Never}, \code{Null}, \code{num}, \code{int}, \code{double},
2533425335
\code{bool}, or \code{String}.
@@ -25359,7 +25360,12 @@ \subsection{Interface Types}
2535925360
We say that $T$ is an \Index{interface type} if{}f
2536025361
$T'$ is of the form \code{$C$<\List{T}{1}{k}>},
2536125362
where $C$ denotes a class different from \code{Never} and \code{Null},
25362-
or $C$ denotes a mixin.
25363+
% TODO(eernst): Add mixin classes when supported
25364+
or $C$ denotes a mixin
25365+
(\ref{mixins}),
25366+
or an enumerated type
25367+
(\ref{enums}).
25368+
% TODO(eernst): Add extension types when supported
2536325369

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

0 commit comments

Comments
 (0)