@@ -3215,7 +3215,7 @@ \subsubsection{The Method \code{noSuchMethod}}
3215
3215
in order to correctly override \code{noSuchMethod} in \code{Object}.
3216
3216
For instance, it can have signature
3217
3217
\code{noSuchMethod(Invocation i)} or
3218
- \code{noSuchMethod(Object i, [String s])},
3218
+ \code{noSuchMethod(Object i, [String? s])},
3219
3219
but not
3220
3220
\code{noSuchMethod(Invocation i, String s)}.
3221
3221
This implies that the situation where \code{noSuchMethod} is invoked
@@ -3961,7 +3961,7 @@ \subsubsection{Generative Constructors}
3961
3961
3962
3962
\begin{dartCode}
3963
3963
class A \{
3964
- int x;
3964
+ int? x;
3965
3965
A([this.x]);
3966
3966
\}
3967
3967
\end{dartCode}
@@ -3972,8 +3972,8 @@ \subsubsection{Generative Constructors}
3972
3972
3973
3973
\begin{dartCode}
3974
3974
class A \{
3975
- int x;
3976
- A([int x]): this.x = x;
3975
+ int? x;
3976
+ A([int? x]): this.x = x;
3977
3977
\}
3978
3978
\end{dartCode}
3979
3979
@@ -15242,7 +15242,7 @@ \subsubsection{Generic Method Instantiation}
15242
15242
\}
15243
15243
\\
15244
15244
\CLASS{} B \EXTENDS{} /*\,or\,\,\IMPLEMENTS\,*/ A \{
15245
- X fi<X \EXTENDS{} num>(X x, [List<X> xs]) => x;
15245
+ X fi<X \EXTENDS{} num>(X x, [List<X>? xs]) => x;
15246
15246
\}
15247
15247
\\
15248
15248
\VOID{} main() \{
@@ -15254,7 +15254,7 @@ \subsubsection{Generic Method Instantiation}
15254
15254
\commentary{%
15255
15255
\noindent
15256
15256
The function object that \code{f} is bound to at the end of \code{main}
15257
- has dynamic type \code{int\,\,\FUNCTION(int,\,[List<int>])},
15257
+ has dynamic type \code{int\,\,\FUNCTION(int,\,[List<int>? ])},
15258
15258
and it is obtained by implicitly
15259
15259
``passing the actual type argument \code{int}''
15260
15260
to the denoted generic instance method,
0 commit comments