@@ -3239,7 +3239,7 @@ \subsubsection{The Method \code{noSuchMethod}}
3239
3239
in order to correctly override \code{noSuchMethod} in \code{Object}.
3240
3240
For instance, it can have signature
3241
3241
\code{noSuchMethod(Invocation i)} or
3242
- \code{noSuchMethod(Object i, [String s = '' ])},
3242
+ \code{noSuchMethod(Object i, [String? s ])},
3243
3243
but not
3244
3244
\code{noSuchMethod(Invocation i, String s)}.
3245
3245
This implies that the situation where \code{noSuchMethod} is invoked
@@ -4010,7 +4010,7 @@ \subsubsection{Generative Constructors}
4010
4010
4011
4011
\begin{dartCode}
4012
4012
class A \{
4013
- int x;
4013
+ int? x;
4014
4014
A([this.x]);
4015
4015
\}
4016
4016
\end{dartCode}
@@ -4021,8 +4021,8 @@ \subsubsection{Generative Constructors}
4021
4021
4022
4022
\begin{dartCode}
4023
4023
class A \{
4024
- int x;
4025
- A([int x]): this.x = x;
4024
+ int? x;
4025
+ A([int? x]): this.x = x;
4026
4026
\}
4027
4027
\end{dartCode}
4028
4028
@@ -15470,7 +15470,7 @@ \subsubsection{Generic Method Instantiation}
15470
15470
\}
15471
15471
\\
15472
15472
\CLASS{} B \EXTENDS{} /*\,or\,\,\IMPLEMENTS\,*/ A \{
15473
- X fi<X \EXTENDS{} num>(X x, [List<X> xs]) => x;
15473
+ X fi<X \EXTENDS{} num>(X x, [List<X>? xs]) => x;
15474
15474
\}
15475
15475
\\
15476
15476
\VOID{} main() \{
@@ -15482,7 +15482,7 @@ \subsubsection{Generic Method Instantiation}
15482
15482
\commentary{%
15483
15483
\noindent
15484
15484
The function object that \code{f} is bound to at the end of \code{main}
15485
- has dynamic type \code{int\,\,\FUNCTION(int,\,[List<int>])},
15485
+ has dynamic type \code{int\,\,\FUNCTION(int,\,[List<int>? ])},
15486
15486
and it is obtained by implicitly
15487
15487
``passing the actual type argument \code{int}''
15488
15488
to the denoted generic instance method,
0 commit comments