We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 063cb2d commit c715315Copy full SHA for c715315
specification/dartLangSpec.tex
@@ -11756,9 +11756,15 @@ \subsection{Function Expressions}
11756
11757
\item{} If $T$ implements \code{Future<$S$>}
11758
(\ref{interfaceSuperinterfaces})
11759
- then \DefEquals{\flatten{T}}{S}.
11760
-
11761
-\item{} Otherwise, \DefEquals{\flatten{T}}{T}.
+ then \DefEquals{\Flatten{$T$}}{S}.
+\item If $T$ is a $B$ bounded type variable
+ (\ref{typesBoundedByTypes})
11762
+ or intersection type
11763
+ (\ref{intersectionTypes})
11764
+ where \SubtypeNE{\code{Object}}{B} then
11765
+ \DefEquals{\Flatten{$T$}}{\code{Object?}}.
11766
+\item Otherwise,
11767
+ \DefEquals{\Flatten{$T$}}{T}.
11768
\end{itemize}
11769
11770
\commentary{%
0 commit comments