Skip to content

Commit 3461eb2

Browse files
committed
Clarified class building types
1 parent 1b2062e commit 3461eb2

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
@@ -25397,19 +25397,22 @@ \subsection{Class Building Types}
2539725397
\begin{itemize}
2539825398
\item $T$ is \VOID{} (\ref{typeVoid}).
2539925399
\item $T$ is \DYNAMIC{} (\ref{typeDynamic}).
25400-
\item $T$ is \code{FutureOr<$S$>} for some type $S$ (\ref{typeFutureOr}).
2540125400
\item
25402-
% TODO(eernst): If we introduce sealed classes we will have an item
25403-
% for those, and we may wish to rephrase this.
2540425401
$T$ is \code{Never}, \code{Null}, \code{num}, \code{int}, \code{double},
2540525402
\code{bool}, or \code{String}.
25403+
\item $T$ is an enumerated type (\ref{enums}).
25404+
% TODO(eernst): Come newer versions, add these:
25405+
% \item $T$ is a record type (\ref{???}) or the type \RECORD.
25406+
% \item $T$ is a sealed class.
25407+
\item $T$ is a function type (\ref{functionTypes}) or the type \FUNCTION.
2540625408
\item $T$ is \code{$S$?} for some type $S$.
25409+
\item $T$ is \code{FutureOr<$S$>} for some type $S$ (\ref{typeFutureOr}).
25410+
% \item $T$ is an extension type (\ref{???}).
2540725411
\item $T$ is a type variable (\ref{generics}).
25408-
\item $T$ is a function type (\ref{functionTypes}).
25412+
\item $T$ is an intersection type (\ref{intersectionTypes}).
25413+
\item $T$ is a deferred type (\ref{staticTypes}).
2540925414
\item $T$ is a type alias whose transitive alias expansion
2541025415
(\ref{typedef}) does not denote a class building type.
25411-
\item $T$ is an enumerated type (\ref{enums}).
25412-
\item $T$ is a deferred type (\ref{staticTypes}).
2541325416
\end{itemize}
2541425417

2541525418

0 commit comments

Comments
 (0)