@@ -3473,7 +3473,7 @@ \subsubsection{The Method \code{noSuchMethod}}
3473
3473
in order to correctly override \code{noSuchMethod} in \code{Object}.
3474
3474
For instance, it can have signature
3475
3475
\code{noSuchMethod(Invocation i)} or
3476
- \code{noSuchMethod(Object i, [String s = '' ])},
3476
+ \code{noSuchMethod(Object i, [String? s ])},
3477
3477
but not
3478
3478
\code{noSuchMethod(Invocation i, String s)}.
3479
3479
This implies that the situation where \code{noSuchMethod} is invoked
@@ -4246,7 +4246,7 @@ \subsubsection{Generative Constructors}
4246
4246
4247
4247
\begin{dartCode}
4248
4248
class A \{
4249
- int x;
4249
+ int? x;
4250
4250
A([this.x]);
4251
4251
\}
4252
4252
\end{dartCode}
@@ -4257,8 +4257,8 @@ \subsubsection{Generative Constructors}
4257
4257
4258
4258
\begin{dartCode}
4259
4259
class A \{
4260
- int x;
4261
- A([int x]): this.x = x;
4260
+ int? x;
4261
+ A([int? x]): this.x = x;
4262
4262
\}
4263
4263
\end{dartCode}
4264
4264
@@ -15966,7 +15966,7 @@ \subsubsection{Generic Method Instantiation}
15966
15966
\}
15967
15967
\\
15968
15968
\CLASS{} B \EXTENDS{} /*\,or\,\,\IMPLEMENTS\,*/ A \{
15969
- X fi<X \EXTENDS{} num>(X x, [List<X> xs]) => x;
15969
+ X fi<X \EXTENDS{} num>(X x, [List<X>? xs]) => x;
15970
15970
\}
15971
15971
\\
15972
15972
\VOID{} main() \{
@@ -15975,9 +15975,9 @@ \subsubsection{Generic Method Instantiation}
15975
15975
\}
15976
15976
\end{dartCode}
15977
15977
15978
- \noindent
15978
+ \commentary{%
15979
15979
The function object that \code{f} is bound to at the end of \code{main}
15980
- has dynamic type \code{int\,\,\FUNCTION(int,\,[List<int>])},
15980
+ has dynamic type \code{int\,\,\FUNCTION(int,\,[List<int>? ])},
15981
15981
and it is obtained by implicitly
15982
15982
``passing the actual type argument \code{int}''
15983
15983
to the denoted generic instance method,
0 commit comments