@@ -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
@@ -15307,7 +15307,7 @@ \subsubsection{Generic Method Instantiation}
15307
15307
\}
15308
15308
\\
15309
15309
\CLASS{} B \EXTENDS{} /*\,or\,\,\IMPLEMENTS\,*/ A \{
15310
- X fi<X \EXTENDS{} num>(X x, [List<X> xs]) => x;
15310
+ X fi<X \EXTENDS{} num>(X x, [List<X>? xs]) => x;
15311
15311
\}
15312
15312
\\
15313
15313
\VOID{} main() \{
@@ -15319,7 +15319,7 @@ \subsubsection{Generic Method Instantiation}
15319
15319
\commentary{%
15320
15320
\noindent
15321
15321
The function object that \code{f} is bound to at the end of \code{main}
15322
- has dynamic type \code{int\,\,\FUNCTION(int,\,[List<int>])},
15322
+ has dynamic type \code{int\,\,\FUNCTION(int,\,[List<int>? ])},
15323
15323
and it is obtained by implicitly
15324
15324
``passing the actual type argument \code{int}''
15325
15325
to the denoted generic instance method,
0 commit comments