@@ -3469,7 +3469,7 @@ \subsubsection{The Method \code{noSuchMethod}}
3469
3469
in order to correctly override \code{noSuchMethod} in \code{Object}.
3470
3470
For instance, it can have signature
3471
3471
\code{noSuchMethod(Invocation i)} or
3472
- \code{noSuchMethod(Object i, [String s = '' ])},
3472
+ \code{noSuchMethod(Object i, [String? s ])},
3473
3473
but not
3474
3474
\code{noSuchMethod(Invocation i, String s)}.
3475
3475
This implies that the situation where \code{noSuchMethod} is invoked
@@ -4242,7 +4242,7 @@ \subsubsection{Generative Constructors}
4242
4242
4243
4243
\begin{dartCode}
4244
4244
class A \{
4245
- int x;
4245
+ int? x;
4246
4246
A([this.x]);
4247
4247
\}
4248
4248
\end{dartCode}
@@ -4253,8 +4253,8 @@ \subsubsection{Generative Constructors}
4253
4253
4254
4254
\begin{dartCode}
4255
4255
class A \{
4256
- int x;
4257
- A([int x]): this.x = x;
4256
+ int? x;
4257
+ A([int? x]): this.x = x;
4258
4258
\}
4259
4259
\end{dartCode}
4260
4260
@@ -15962,7 +15962,7 @@ \subsubsection{Generic Method Instantiation}
15962
15962
\}
15963
15963
\\
15964
15964
\CLASS{} B \EXTENDS{} /*\,or\,\,\IMPLEMENTS\,*/ A \{
15965
- X fi<X \EXTENDS{} num>(X x, [List<X> xs]) => x;
15965
+ X fi<X \EXTENDS{} num>(X x, [List<X>? xs]) => x;
15966
15966
\}
15967
15967
\\
15968
15968
\VOID{} main() \{
@@ -15971,9 +15971,9 @@ \subsubsection{Generic Method Instantiation}
15971
15971
\}
15972
15972
\end{dartCode}
15973
15973
15974
- \noindent
15974
+ \commentary{%
15975
15975
The function object that \code{f} is bound to at the end of \code{main}
15976
- has dynamic type \code{int\,\,\FUNCTION(int,\,[List<int>])},
15976
+ has dynamic type \code{int\,\,\FUNCTION(int,\,[List<int>? ])},
15977
15977
and it is obtained by implicitly
15978
15978
``passing the actual type argument \code{int}''
15979
15979
to the denoted generic instance method,
0 commit comments