Skip to content

Commit 886c509

Browse files
committed
Add missing cases to the definition of interface types
1 parent 0237ac6 commit 886c509

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
@@ -24939,7 +24939,7 @@ \subsection{Least and Greatest Closure of Types}
2493924939
where $U$ is the greatest closure of $T$ with respect to $L$.
2494024940
\end{itemize}
2494124941
\item
24942-
If $S$ is an interface type of the type \code{$C$<\List{T}{1}{k}>} then
24942+
If $S$ is an interface type of the form \code{$C$<\List{T}{1}{k}>} then
2494324943
\begin{itemize}
2494424944
\item
2494524945
the least closure of $S$ with respect to $L$ is \code{$C$<\List{U}{1}{k}>},
@@ -25120,6 +25120,7 @@ \subsection{Class Building Types}
2512025120
\begin{itemize}
2512125121
\item $T$ is \VOID{} (\ref{typeVoid}).
2512225122
\item $T$ is \DYNAMIC{} (\ref{typeDynamic}).
25123+
% TODO(eernst): Come newer versions, remove all sealed classes from here.
2512325124
\item
2512425125
$T$ is \code{Never}, \code{Null}, \code{num}, \code{int}, \code{double},
2512525126
\code{bool}, or \code{String}.
@@ -25150,7 +25151,12 @@ \subsection{Interface Types}
2515025151
We say that $T$ is an \Index{interface type} if{}f
2515125152
$T'$ is of the form \code{$C$<\List{T}{1}{k}>},
2515225153
where $C$ denotes a class different from \code{Never} and \code{Null},
25153-
or $C$ denotes a mixin.
25154+
% TODO(eernst): Add mixin classes when supported
25155+
or $C$ denotes a mixin
25156+
(\ref{mixins}),
25157+
or an enumerated type
25158+
(\ref{enums}).
25159+
% TODO(eernst): Add extension types when supported
2515425160

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

0 commit comments

Comments
 (0)