@@ -5680,7 +5680,7 @@ \subsubsection{Correct Member Overrides}
5680
5680
\item
5681
5681
If $m$ and $m'$ are both methods or both setters:
5682
5682
Let $F$ be the function type of $m$
5683
- except that the parameter type is the built-in class \code{Object}
5683
+ except that the parameter type is \code{Object? }
5684
5684
for each parameter of $m$ which is covariant-by-declaration
5685
5685
(\ref{covariantParameters}).
5686
5686
Let $F'$ be the function type of $m'$.
@@ -7672,7 +7672,7 @@ \subsection{Super-Bounded Types}
7672
7672
\end{dartCode}
7673
7673
7674
7674
\commentary{%
7675
- With this, \code{a.x} has static type \code{Object},
7675
+ With this, \code{a.x} has static type \code{Object? },
7676
7676
even though the upper bound on the type variable \code{X} is \code{num}.%
7677
7677
}
7678
7678
@@ -7699,7 +7699,7 @@ \subsection{Super-Bounded Types}
7699
7699
(noting that all types must be regular-bounded
7700
7700
when we do not have the notion of super-bounded types).
7701
7701
So if we wish to allow a variable to hold any instance ``of type \code{C}''
7702
- then that variable must use \code{Object} or another top type
7702
+ then that variable must use \code{Object? } or another top type
7703
7703
as its type annotation,
7704
7704
which means that a member like \code{next} is not known to exist
7705
7705
(which is what we mean by saying that the type is `less informative').%
@@ -12652,7 +12652,7 @@ \subsection{Function Invocation}
12652
12652
where $U$ is determined as follows:
12653
12653
Let $T$ be the actual return type of $f$ (\ref{actualTypes}).
12654
12654
If $T$ is \code{Iterable<$S$>} for some type $S$, then $U$ is $S$,
12655
- otherwise $U$ is \code{Object}.
12655
+ otherwise $U$ is \code{Object? }.
12656
12656
12657
12657
\commentary{%
12658
12658
A Dart implementation will need to provide
@@ -12770,7 +12770,7 @@ \subsection{Function Invocation}
12770
12770
where $U$ is determined as follows:
12771
12771
Let $T$ be the actual return type of $f$ (\ref{actualTypes}).
12772
12772
If $T$ is \code{Stream<$S$>} for some type $S$, then $U$ is $S$,
12773
- otherwise $U$ is \code{Object}.
12773
+ otherwise $U$ is \code{Object? }.
12774
12774
When $s$ is listened to, execution of the body of $f$ will begin.
12775
12775
When execution of the body of $f$ completes:
12776
12776
\begin{itemize}
@@ -14752,7 +14752,7 @@ \subsubsection{Superinvocations}
14752
14752
It is a \Error{compile-time error} if a method superinvocation occurs
14753
14753
in a top-level function or variable initializer,
14754
14754
in an instance variable initializer or initializer list,
14755
- in class \code{Object},
14755
+ in the built-in class \code{Object},
14756
14756
in a factory constructor,
14757
14757
or in a static method or variable initializer.
14758
14758
0 commit comments