@@ -5957,7 +5957,7 @@ \subsubsection{Correct Member Overrides}
5957
5957
\item
5958
5958
If $m$ and $m'$ are both methods or both setters:
5959
5959
Let $F$ be the function type of $m$
5960
- except that the parameter type is the built-in class \code{Object}
5960
+ except that the parameter type is \code{Object? }
5961
5961
for each parameter of $m$ which is covariant-by-declaration
5962
5962
(\ref{covariantParameters}).
5963
5963
Let $F'$ be the function type of $m'$.
@@ -7967,7 +7967,7 @@ \subsection{Super-Bounded Types}
7967
7967
\end{dartCode}
7968
7968
7969
7969
\commentary{%
7970
- With this, \code{a.x} has static type \code{Object},
7970
+ With this, \code{a.x} has static type \code{Object? },
7971
7971
even though the upper bound on the type variable \code{X} is \code{num}.%
7972
7972
}
7973
7973
@@ -7994,7 +7994,7 @@ \subsection{Super-Bounded Types}
7994
7994
(noting that all types must be regular-bounded
7995
7995
when we do not have the notion of super-bounded types).
7996
7996
So if we wish to allow a variable to hold any instance ``of type \code{C}''
7997
- then that variable must use \code{Object} or another top type
7997
+ then that variable must use \code{Object? } or another top type
7998
7998
as its type annotation,
7999
7999
which means that a member like \code{next} is not known to exist
8000
8000
(which is what we mean by saying that the type is `less informative').%
@@ -15224,7 +15224,7 @@ \subsubsection{Superinvocations}
15224
15224
It is a \Error{compile-time error} if a method superinvocation occurs
15225
15225
in a top-level function or variable initializer,
15226
15226
in an instance variable initializer or initializer list,
15227
- in class \code{Object},
15227
+ in the built-in class \code{Object},
15228
15228
in a factory constructor,
15229
15229
or in a static method or variable initializer.
15230
15230
0 commit comments