Skip to content

Commit ca1d33c

Browse files
committed
Clarified class building types
1 parent b84bf82 commit ca1d33c

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
@@ -25338,19 +25338,22 @@ \subsection{Class Building Types}
2533825338
\begin{itemize}
2533925339
\item $T$ is \VOID{} (\ref{typeVoid}).
2534025340
\item $T$ is \DYNAMIC{} (\ref{typeDynamic}).
25341-
\item $T$ is \code{FutureOr<$S$>} for some type $S$ (\ref{typeFutureOr}).
2534225341
\item
25343-
% TODO(eernst): If we introduce sealed classes we will have an item
25344-
% for those, and we may wish to rephrase this.
2534525342
$T$ is \code{Never}, \code{Null}, \code{num}, \code{int}, \code{double},
2534625343
\code{bool}, or \code{String}.
25344+
\item $T$ is an enumerated type (\ref{enums}).
25345+
% TODO(eernst): Come newer versions, add these:
25346+
% \item $T$ is a record type (\ref{???}) or the type \RECORD.
25347+
% \item $T$ is a sealed class.
25348+
\item $T$ is a function type (\ref{functionTypes}) or the type \FUNCTION.
2534725349
\item $T$ is \code{$S$?} for some type $S$.
25350+
\item $T$ is \code{FutureOr<$S$>} for some type $S$ (\ref{typeFutureOr}).
25351+
% \item $T$ is an extension type (\ref{???}).
2534825352
\item $T$ is a type variable (\ref{generics}).
25349-
\item $T$ is a function type (\ref{functionTypes}).
25353+
\item $T$ is an intersection type (\ref{intersectionTypes}).
25354+
\item $T$ is a deferred type (\ref{staticTypes}).
2535025355
\item $T$ is a type alias whose transitive alias expansion
2535125356
(\ref{typedef}) does not denote a class building type.
25352-
\item $T$ is an enumerated type (\ref{enums}).
25353-
\item $T$ is a deferred type (\ref{staticTypes}).
2535425357
\end{itemize}
2535525358

2535625359

0 commit comments

Comments
 (0)