@@ -5836,7 +5836,7 @@ \subsubsection{Correct Member Overrides}
5836
5836
\item
5837
5837
If $m$ and $m'$ are both methods or both setters:
5838
5838
Let $F$ be the function type of $m$
5839
- except that the parameter type is the built-in class \code{Object}
5839
+ except that the parameter type is \code{Object? }
5840
5840
for each parameter of $m$ which is covariant-by-declaration
5841
5841
(\ref{covariantParameters}).
5842
5842
Let $F'$ be the function type of $m'$.
@@ -7828,7 +7828,7 @@ \subsection{Super-Bounded Types}
7828
7828
\end{dartCode}
7829
7829
7830
7830
\commentary{%
7831
- With this, \code{a.x} has static type \code{Object},
7831
+ With this, \code{a.x} has static type \code{Object? },
7832
7832
even though the upper bound on the type variable \code{X} is \code{num}.%
7833
7833
}
7834
7834
@@ -7855,7 +7855,7 @@ \subsection{Super-Bounded Types}
7855
7855
(noting that all types must be regular-bounded
7856
7856
when we do not have the notion of super-bounded types).
7857
7857
So if we wish to allow a variable to hold any instance ``of type \code{C}''
7858
- then that variable must use \code{Object} or another top type
7858
+ then that variable must use \code{Object? } or another top type
7859
7859
as its type annotation,
7860
7860
which means that a member like \code{next} is not known to exist
7861
7861
(which is what we mean by saying that the type is `less informative').%
@@ -12814,7 +12814,7 @@ \subsection{Function Invocation}
12814
12814
where $U$ is determined as follows:
12815
12815
Let $T$ be the actual return type of $f$ (\ref{actualTypes}).
12816
12816
If $T$ is \code{Iterable<$S$>} for some type $S$, then $U$ is $S$,
12817
- otherwise $U$ is \code{Object}.
12817
+ otherwise $U$ is \code{Object? }.
12818
12818
12819
12819
\commentary{%
12820
12820
A Dart implementation will need to provide
@@ -12932,7 +12932,7 @@ \subsection{Function Invocation}
12932
12932
where $U$ is determined as follows:
12933
12933
Let $T$ be the actual return type of $f$ (\ref{actualTypes}).
12934
12934
If $T$ is \code{Stream<$S$>} for some type $S$, then $U$ is $S$,
12935
- otherwise $U$ is \code{Object}.
12935
+ otherwise $U$ is \code{Object? }.
12936
12936
When $s$ is listened to, execution of the body of $f$ will begin.
12937
12937
When execution of the body of $f$ completes:
12938
12938
\begin{itemize}
@@ -14914,7 +14914,7 @@ \subsubsection{Superinvocations}
14914
14914
It is a \Error{compile-time error} if a method superinvocation occurs
14915
14915
in a top-level function or variable initializer,
14916
14916
in an instance variable initializer or initializer list,
14917
- in class \code{Object},
14917
+ in the built-in class \code{Object},
14918
14918
in a factory constructor,
14919
14919
or in a static method or variable initializer.
14920
14920
0 commit comments