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 342d8b7 commit 3b1038eCopy full SHA for 3b1038e
specification/dartLangSpec.tex
@@ -11753,9 +11753,15 @@ \subsection{Function Expressions}
11753
11754
\item{} If $T$ implements \code{Future<$S$>}
11755
(\ref{interfaceSuperinterfaces})
11756
- then \DefEquals{\flatten{T}}{S}.
11757
-
11758
-\item{} Otherwise, \DefEquals{\flatten{T}}{T}.
+ then \DefEquals{\Flatten{$T$}}{S}.
+\item If $T$ is a $B$ bounded type variable
+ (\ref{typesBoundedByTypes})
11759
+ or intersection type
11760
+ (\ref{intersectionTypes})
11761
+ where \SubtypeNE{\code{Object}}{B} then
11762
+ \DefEquals{\Flatten{$T$}}{\code{Object?}}.
11763
+\item Otherwise,
11764
+ \DefEquals{\Flatten{$T$}}{T}.
11765
\end{itemize}
11766
11767
\commentary{%
0 commit comments