@@ -5856,7 +5856,7 @@ \subsubsection{Correct Member Overrides}
5856
5856
\item
5857
5857
If $m$ and $m'$ are both methods or both setters:
5858
5858
Let $F$ be the function type of $m$
5859
- except that the parameter type is the built-in class \code{Object}
5859
+ except that the parameter type is \code{Object? }
5860
5860
for each parameter of $m$ which is covariant-by-declaration
5861
5861
(\ref{covariantParameters}).
5862
5862
Let $F'$ be the function type of $m'$.
@@ -7846,7 +7846,7 @@ \subsection{Super-Bounded Types}
7846
7846
\end{dartCode}
7847
7847
7848
7848
\commentary{%
7849
- With this, \code{a.x} has static type \code{Object},
7849
+ With this, \code{a.x} has static type \code{Object? },
7850
7850
even though the upper bound on the type variable \code{X} is \code{num}.%
7851
7851
}
7852
7852
@@ -7873,7 +7873,7 @@ \subsection{Super-Bounded Types}
7873
7873
(noting that all types must be regular-bounded
7874
7874
when we do not have the notion of super-bounded types).
7875
7875
So if we wish to allow a variable to hold any instance ``of type \code{C}''
7876
- then that variable must use \code{Object} or another top type
7876
+ then that variable must use \code{Object? } or another top type
7877
7877
as its type annotation,
7878
7878
which means that a member like \code{next} is not known to exist
7879
7879
(which is what we mean by saying that the type is `less informative').%
@@ -14933,7 +14933,7 @@ \subsubsection{Superinvocations}
14933
14933
It is a \Error{compile-time error} if a method superinvocation occurs
14934
14934
in a top-level function or variable initializer,
14935
14935
in an instance variable initializer or initializer list,
14936
- in class \code{Object},
14936
+ in the built-in class \code{Object},
14937
14937
in a factory constructor,
14938
14938
or in a static method or variable initializer.
14939
14939
0 commit comments