@@ -3231,7 +3231,7 @@ \subsubsection{The Method \code{noSuchMethod}}
3231
3231
in order to correctly override \code{noSuchMethod} in \code{Object}.
3232
3232
For instance, it can have signature
3233
3233
\code{noSuchMethod(Invocation i)} or
3234
- \code{noSuchMethod(Object i, [String s = '' ])},
3234
+ \code{noSuchMethod(Object i, [String? s ])},
3235
3235
but not
3236
3236
\code{noSuchMethod(Invocation i, String s)}.
3237
3237
This implies that the situation where \code{noSuchMethod} is invoked
@@ -4002,7 +4002,7 @@ \subsubsection{Generative Constructors}
4002
4002
4003
4003
\begin{dartCode}
4004
4004
class A \{
4005
- int x;
4005
+ int? x;
4006
4006
A([this.x]);
4007
4007
\}
4008
4008
\end{dartCode}
@@ -4013,8 +4013,8 @@ \subsubsection{Generative Constructors}
4013
4013
4014
4014
\begin{dartCode}
4015
4015
class A \{
4016
- int x;
4017
- A([int x]): this.x = x;
4016
+ int? x;
4017
+ A([int? x]): this.x = x;
4018
4018
\}
4019
4019
\end{dartCode}
4020
4020
@@ -15398,7 +15398,7 @@ \subsubsection{Generic Method Instantiation}
15398
15398
\}
15399
15399
\\
15400
15400
\CLASS{} B \EXTENDS{} /*\,or\,\,\IMPLEMENTS\,*/ A \{
15401
- X fi<X \EXTENDS{} num>(X x, [List<X> xs]) => x;
15401
+ X fi<X \EXTENDS{} num>(X x, [List<X>? xs]) => x;
15402
15402
\}
15403
15403
\\
15404
15404
\VOID{} main() \{
@@ -15410,7 +15410,7 @@ \subsubsection{Generic Method Instantiation}
15410
15410
\commentary{%
15411
15411
\noindent
15412
15412
The function object that \code{f} is bound to at the end of \code{main}
15413
- has dynamic type \code{int\,\,\FUNCTION(int,\,[List<int>])},
15413
+ has dynamic type \code{int\,\,\FUNCTION(int,\,[List<int>? ])},
15414
15414
and it is obtained by implicitly
15415
15415
``passing the actual type argument \code{int}''
15416
15416
to the denoted generic instance method,
0 commit comments