@@ -3216,7 +3216,7 @@ \subsubsection{The Method \code{noSuchMethod}}
3216
3216
in order to correctly override \code{noSuchMethod} in \code{Object}.
3217
3217
For instance, it can have signature
3218
3218
\code{noSuchMethod(Invocation i)} or
3219
- \code{noSuchMethod(Object i, [String s])},
3219
+ \code{noSuchMethod(Object i, [String? s])},
3220
3220
but not
3221
3221
\code{noSuchMethod(Invocation i, String s)}.
3222
3222
This implies that the situation where \code{noSuchMethod} is invoked
@@ -3962,7 +3962,7 @@ \subsubsection{Generative Constructors}
3962
3962
3963
3963
\begin{dartCode}
3964
3964
class A \{
3965
- int x;
3965
+ int? x;
3966
3966
A([this.x]);
3967
3967
\}
3968
3968
\end{dartCode}
@@ -3973,8 +3973,8 @@ \subsubsection{Generative Constructors}
3973
3973
3974
3974
\begin{dartCode}
3975
3975
class A \{
3976
- int x;
3977
- A([int x]): this.x = x;
3976
+ int? x;
3977
+ A([int? x]): this.x = x;
3978
3978
\}
3979
3979
\end{dartCode}
3980
3980
@@ -15312,7 +15312,7 @@ \subsubsection{Generic Method Instantiation}
15312
15312
\}
15313
15313
\\
15314
15314
\CLASS{} B \EXTENDS{} /*\,or\,\,\IMPLEMENTS\,*/ A \{
15315
- X fi<X \EXTENDS{} num>(X x, [List<X> xs]) => x;
15315
+ X fi<X \EXTENDS{} num>(X x, [List<X>? xs]) => x;
15316
15316
\}
15317
15317
\\
15318
15318
\VOID{} main() \{
@@ -15324,7 +15324,7 @@ \subsubsection{Generic Method Instantiation}
15324
15324
\commentary{%
15325
15325
\noindent
15326
15326
The function object that \code{f} is bound to at the end of \code{main}
15327
- has dynamic type \code{int\,\,\FUNCTION(int,\,[List<int>])},
15327
+ has dynamic type \code{int\,\,\FUNCTION(int,\,[List<int>? ])},
15328
15328
and it is obtained by implicitly
15329
15329
``passing the actual type argument \code{int}''
15330
15330
to the denoted generic instance method,
0 commit comments