Skip to content

Commit 72028b0

Browse files
committed
Clarified class building types
1 parent 2d695e7 commit 72028b0

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

specification/dartLangSpec.tex

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25322,19 +25322,22 @@ \subsection{Class Building Types}
2532225322
\begin{itemize}
2532325323
\item $T$ is \VOID{} (\ref{typeVoid}).
2532425324
\item $T$ is \DYNAMIC{} (\ref{typeDynamic}).
25325-
\item $T$ is \code{FutureOr<$S$>} for some type $S$ (\ref{typeFutureOr}).
2532625325
\item
25327-
% TODO(eernst): If we introduce sealed classes we will have an item
25328-
% for those, and we may wish to rephrase this.
2532925326
$T$ is \code{Never}, \code{Null}, \code{num}, \code{int}, \code{double},
2533025327
\code{bool}, or \code{String}.
25328+
\item $T$ is an enumerated type (\ref{enums}).
25329+
% TODO(eernst): Come newer versions, add these:
25330+
% \item $T$ is a record type (\ref{???}) or the type \RECORD.
25331+
% \item $T$ is a sealed class.
25332+
\item $T$ is a function type (\ref{functionTypes}) or the type \FUNCTION.
2533125333
\item $T$ is \code{$S$?} for some type $S$.
25334+
\item $T$ is \code{FutureOr<$S$>} for some type $S$ (\ref{typeFutureOr}).
25335+
% \item $T$ is an extension type (\ref{???}).
2533225336
\item $T$ is a type variable (\ref{generics}).
25333-
\item $T$ is a function type (\ref{functionTypes}).
25337+
\item $T$ is an intersection type (\ref{intersectionTypes}).
25338+
\item $T$ is a deferred type (\ref{staticTypes}).
2533425339
\item $T$ is a type alias whose transitive alias expansion
2533525340
(\ref{typedef}) does not denote a class building type.
25336-
\item $T$ is an enumerated type (\ref{enums}).
25337-
\item $T$ is a deferred type (\ref{staticTypes}).
2533825341
\end{itemize}
2533925342

2534025343

0 commit comments

Comments
 (0)