@@ -3413,7 +3413,7 @@ \subsubsection{The Method \code{noSuchMethod}}
3413
3413
in order to correctly override \code{noSuchMethod} in \code{Object}.
3414
3414
For instance, it can have signature
3415
3415
\code{noSuchMethod(Invocation i)} or
3416
- \code{noSuchMethod(Object i, [String s = '' ])},
3416
+ \code{noSuchMethod(Object i, [String? s ])},
3417
3417
but not
3418
3418
\code{noSuchMethod(Invocation i, String s)}.
3419
3419
This implies that the situation where \code{noSuchMethod} is invoked
@@ -4184,7 +4184,7 @@ \subsubsection{Generative Constructors}
4184
4184
4185
4185
\begin{dartCode}
4186
4186
class A \{
4187
- int x;
4187
+ int? x;
4188
4188
A([this.x]);
4189
4189
\}
4190
4190
\end{dartCode}
@@ -4195,8 +4195,8 @@ \subsubsection{Generative Constructors}
4195
4195
4196
4196
\begin{dartCode}
4197
4197
class A \{
4198
- int x;
4199
- A([int x]): this.x = x;
4198
+ int? x;
4199
+ A([int? x]): this.x = x;
4200
4200
\}
4201
4201
\end{dartCode}
4202
4202
@@ -15651,7 +15651,7 @@ \subsubsection{Generic Method Instantiation}
15651
15651
\}
15652
15652
\\
15653
15653
\CLASS{} B \EXTENDS{} /*\,or\,\,\IMPLEMENTS\,*/ A \{
15654
- X fi<X \EXTENDS{} num>(X x, [List<X> xs]) => x;
15654
+ X fi<X \EXTENDS{} num>(X x, [List<X>? xs]) => x;
15655
15655
\}
15656
15656
\\
15657
15657
\VOID{} main() \{
@@ -15663,7 +15663,7 @@ \subsubsection{Generic Method Instantiation}
15663
15663
\commentary{%
15664
15664
\noindent
15665
15665
The function object that \code{f} is bound to at the end of \code{main}
15666
- has dynamic type \code{int\,\,\FUNCTION(int,\,[List<int>])},
15666
+ has dynamic type \code{int\,\,\FUNCTION(int,\,[List<int>? ])},
15667
15667
and it is obtained by implicitly
15668
15668
``passing the actual type argument \code{int}''
15669
15669
to the denoted generic instance method,
0 commit comments