Skip to content

Commit 26c6312

Browse files
committed
Add missing cases to the definition of interface types
1 parent e5a3604 commit 26c6312

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
@@ -25219,7 +25219,7 @@ \subsection{Least and Greatest Closure of Types}
2521925219
where $U$ is the greatest closure of $T$ with respect to $L$.
2522025220
\end{itemize}
2522125221
\item
25222-
If $S$ is an interface type of the type \code{$C$<\List{T}{1}{k}>} then
25222+
If $S$ is an interface type of the form \code{$C$<\List{T}{1}{k}>} then
2522325223
\begin{itemize}
2522425224
\item
2522525225
the least closure of $S$ with respect to $L$ is \code{$C$<\List{U}{1}{k}>},
@@ -25400,6 +25400,7 @@ \subsection{Class Building Types}
2540025400
\begin{itemize}
2540125401
\item $T$ is \VOID{} (\ref{typeVoid}).
2540225402
\item $T$ is \DYNAMIC{} (\ref{typeDynamic}).
25403+
% TODO(eernst): Come newer versions, remove all sealed classes from here.
2540325404
\item
2540425405
$T$ is \code{Never}, \code{Null}, \code{num}, \code{int}, \code{double},
2540525406
\code{bool}, or \code{String}.
@@ -25430,7 +25431,12 @@ \subsection{Interface Types}
2543025431
We say that $T$ is an \Index{interface type} if{}f
2543125432
$T'$ is of the form \code{$C$<\List{T}{1}{k}>},
2543225433
where $C$ denotes a class different from \code{Never} and \code{Null},
25433-
or $C$ denotes a mixin.
25434+
% TODO(eernst): Add mixin classes when supported
25435+
or $C$ denotes a mixin
25436+
(\ref{mixins}),
25437+
or an enumerated type
25438+
(\ref{enums}).
25439+
% TODO(eernst): Add extension types when supported
2543425440

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

0 commit comments

Comments
 (0)