Skip to content

Commit 8ed26d9

Browse files
committed
Clarified class building types
1 parent 3b57a9a commit 8ed26d9

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
@@ -25390,19 +25390,22 @@ \subsection{Class Building Types}
2539025390
\begin{itemize}
2539125391
\item $T$ is \VOID{} (\ref{typeVoid}).
2539225392
\item $T$ is \DYNAMIC{} (\ref{typeDynamic}).
25393-
\item $T$ is \code{FutureOr<$S$>} for some type $S$ (\ref{typeFutureOr}).
2539425393
\item
25395-
% TODO(eernst): If we introduce sealed classes we will have an item
25396-
% for those, and we may wish to rephrase this.
2539725394
$T$ is \code{Never}, \code{Null}, \code{num}, \code{int}, \code{double},
2539825395
\code{bool}, or \code{String}.
25396+
\item $T$ is an enumerated type (\ref{enums}).
25397+
% TODO(eernst): Come newer versions, add these:
25398+
% \item $T$ is a record type (\ref{???}) or the type \RECORD.
25399+
% \item $T$ is a sealed class.
25400+
\item $T$ is a function type (\ref{functionTypes}) or the type \FUNCTION.
2539925401
\item $T$ is \code{$S$?} for some type $S$.
25402+
\item $T$ is \code{FutureOr<$S$>} for some type $S$ (\ref{typeFutureOr}).
25403+
% \item $T$ is an extension type (\ref{???}).
2540025404
\item $T$ is a type variable (\ref{generics}).
25401-
\item $T$ is a function type (\ref{functionTypes}).
25405+
\item $T$ is an intersection type (\ref{intersectionTypes}).
25406+
\item $T$ is a deferred type (\ref{staticTypes}).
2540225407
\item $T$ is a type alias whose transitive alias expansion
2540325408
(\ref{typedef}) does not denote a class building type.
25404-
\item $T$ is an enumerated type (\ref{enums}).
25405-
\item $T$ is a deferred type (\ref{staticTypes}).
2540625409
\end{itemize}
2540725410

2540825411

0 commit comments

Comments
 (0)