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