@@ -3229,7 +3229,7 @@ \subsubsection{The Method \code{noSuchMethod}}
3229
3229
in order to correctly override \code{noSuchMethod} in \code{Object}.
3230
3230
For instance, it can have signature
3231
3231
\code{noSuchMethod(Invocation i)} or
3232
- \code{noSuchMethod(Object i, [String s])},
3232
+ \code{noSuchMethod(Object i, [String? s])},
3233
3233
but not
3234
3234
\code{noSuchMethod(Invocation i, String s)}.
3235
3235
This implies that the situation where \code{noSuchMethod} is invoked
@@ -3975,7 +3975,7 @@ \subsubsection{Generative Constructors}
3975
3975
3976
3976
\begin{dartCode}
3977
3977
class A \{
3978
- int x;
3978
+ int? x;
3979
3979
A([this.x]);
3980
3980
\}
3981
3981
\end{dartCode}
@@ -3986,8 +3986,8 @@ \subsubsection{Generative Constructors}
3986
3986
3987
3987
\begin{dartCode}
3988
3988
class A \{
3989
- int x;
3990
- A([int x]): this.x = x;
3989
+ int? x;
3990
+ A([int? x]): this.x = x;
3991
3991
\}
3992
3992
\end{dartCode}
3993
3993
@@ -15352,7 +15352,7 @@ \subsubsection{Generic Method Instantiation}
15352
15352
\}
15353
15353
\\
15354
15354
\CLASS{} B \EXTENDS{} /*\,or\,\,\IMPLEMENTS\,*/ A \{
15355
- X fi<X \EXTENDS{} num>(X x, [List<X> xs]) => x;
15355
+ X fi<X \EXTENDS{} num>(X x, [List<X>? xs]) => x;
15356
15356
\}
15357
15357
\\
15358
15358
\VOID{} main() \{
@@ -15364,7 +15364,7 @@ \subsubsection{Generic Method Instantiation}
15364
15364
\commentary{%
15365
15365
\noindent
15366
15366
The function object that \code{f} is bound to at the end of \code{main}
15367
- has dynamic type \code{int\,\,\FUNCTION(int,\,[List<int>])},
15367
+ has dynamic type \code{int\,\,\FUNCTION(int,\,[List<int>? ])},
15368
15368
and it is obtained by implicitly
15369
15369
``passing the actual type argument \code{int}''
15370
15370
to the denoted generic instance method,
0 commit comments