Index: docs/language/dartLangSpec.tex |
diff --git a/docs/language/dartLangSpec.tex b/docs/language/dartLangSpec.tex |
index c0b9cff01ea5ff6531cd28400c2b787e7128cc2e..4c498a33a097e85a221d0c86024a0bd6a850134a 100644 |
--- a/docs/language/dartLangSpec.tex |
+++ b/docs/language/dartLangSpec.tex |
@@ -3873,6 +3873,8 @@ Let $T$ be the static type of $o$. It is a static type warning if $T$ does not |
\item |
$T$ or a superinterface of $T$ is annotated with an annotation denoting a constant identical to the constant \code{@proxy} defined in \code{dart:core}. Or |
\item $T$ is \code{Type}, $e$ is a constant type literal and the class corresponding to $e$ has a static getter named $m$. |
+\item $T$ is \code{Function} and $m$ is \CALL. \rationale {The type \code{Function} is treated as if it has a \code{call} method for any possible signature of \CALL. The expectation is that any concrete subclass of \code{Function} will implement \CALL. Note that a warning will be issue if this is not the case. Furthermore, any use of \CALL on a subclass of \code{Function} that fails to implement \CALL{} will also provoke a a warning, as this exemption is limited to type \code{Function}, and does not apply to its subtypes. |
+} |
\end{itemize} |
\LMHash{} |
@@ -4161,12 +4163,14 @@ Let $T$ be the static type of $e$. It is a static type warning if $T$ does not h |
\begin{itemize} |
\item $T$ or a superinterface of $T$ is annotated with an annotation denoting a constant identical to the constant \code{@proxy} defined in \cd{dart:core}. Or |
\item $T$ is \cd{Type}, $e$ is a constant type literal and the class corresponding to $e$ declares an accessible static method or getter named $m$. |
+\item $T$ is \code{Function} and $m$ is \CALL. |
\end{itemize} |
The static type of $i$ is: |
\begin{itemize} |
\item The static type of function $T.m$, if $T$ has an accessible instance member named $m$. |
\item The static type of function $T.m$, if $T$ is \cd{Type}, $e$ is a constant type literal and the class corresponding to $e$ declares an accessible static member or constructor named $m$. |
+\item \code{Function} if $T$ is \code{Function} and $m$ is \CALL. |
\item The type \DYNAMIC{} otherwise. |
\end{itemize} |