Skip to content

Commit ae54d42

Browse files
committed
Clarified class building types
1 parent 0aff06a commit ae54d42

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
@@ -25326,19 +25326,22 @@ \subsection{Class Building Types}
2532625326
\begin{itemize}
2532725327
\item $T$ is \VOID{} (\ref{typeVoid}).
2532825328
\item $T$ is \DYNAMIC{} (\ref{typeDynamic}).
25329-
\item $T$ is \code{FutureOr<$S$>} for some type $S$ (\ref{typeFutureOr}).
2533025329
\item
25331-
% TODO(eernst): If we introduce sealed classes we will have an item
25332-
% for those, and we may wish to rephrase this.
2533325330
$T$ is \code{Never}, \code{Null}, \code{num}, \code{int}, \code{double},
2533425331
\code{bool}, or \code{String}.
25332+
\item $T$ is an enumerated type (\ref{enums}).
25333+
% TODO(eernst): Come newer versions, add these:
25334+
% \item $T$ is a record type (\ref{???}) or the type \RECORD.
25335+
% \item $T$ is a sealed class.
25336+
\item $T$ is a function type (\ref{functionTypes}) or the type \FUNCTION.
2533525337
\item $T$ is \code{$S$?} for some type $S$.
25338+
\item $T$ is \code{FutureOr<$S$>} for some type $S$ (\ref{typeFutureOr}).
25339+
% \item $T$ is an extension type (\ref{???}).
2533625340
\item $T$ is a type variable (\ref{generics}).
25337-
\item $T$ is a function type (\ref{functionTypes}).
25341+
\item $T$ is an intersection type (\ref{intersectionTypes}).
25342+
\item $T$ is a deferred type (\ref{staticTypes}).
2533825343
\item $T$ is a type alias whose transitive alias expansion
2533925344
(\ref{typedef}) does not denote a class building type.
25340-
\item $T$ is an enumerated type (\ref{enums}).
25341-
\item $T$ is a deferred type (\ref{staticTypes}).
2534225345
\end{itemize}
2534325346

2534425347

0 commit comments

Comments
 (0)