@@ -3393,7 +3393,7 @@ \subsubsection{The Method \code{noSuchMethod}}
3393
3393
in order to correctly override \code{noSuchMethod} in \code{Object}.
3394
3394
For instance, it can have signature
3395
3395
\code{noSuchMethod(Invocation i)} or
3396
- \code{noSuchMethod(Object i, [String s = '' ])},
3396
+ \code{noSuchMethod(Object i, [String? s ])},
3397
3397
but not
3398
3398
\code{noSuchMethod(Invocation i, String s)}.
3399
3399
This implies that the situation where \code{noSuchMethod} is invoked
@@ -4164,7 +4164,7 @@ \subsubsection{Generative Constructors}
4164
4164
4165
4165
\begin{dartCode}
4166
4166
class A \{
4167
- int x;
4167
+ int? x;
4168
4168
A([this.x]);
4169
4169
\}
4170
4170
\end{dartCode}
@@ -4175,8 +4175,8 @@ \subsubsection{Generative Constructors}
4175
4175
4176
4176
\begin{dartCode}
4177
4177
class A \{
4178
- int x;
4179
- A([int x]): this.x = x;
4178
+ int? x;
4179
+ A([int? x]): this.x = x;
4180
4180
\}
4181
4181
\end{dartCode}
4182
4182
@@ -15632,7 +15632,7 @@ \subsubsection{Generic Method Instantiation}
15632
15632
\}
15633
15633
\\
15634
15634
\CLASS{} B \EXTENDS{} /*\,or\,\,\IMPLEMENTS\,*/ A \{
15635
- X fi<X \EXTENDS{} num>(X x, [List<X> xs]) => x;
15635
+ X fi<X \EXTENDS{} num>(X x, [List<X>? xs]) => x;
15636
15636
\}
15637
15637
\\
15638
15638
\VOID{} main() \{
@@ -15644,7 +15644,7 @@ \subsubsection{Generic Method Instantiation}
15644
15644
\commentary{%
15645
15645
\noindent
15646
15646
The function object that \code{f} is bound to at the end of \code{main}
15647
- has dynamic type \code{int\,\,\FUNCTION(int,\,[List<int>])},
15647
+ has dynamic type \code{int\,\,\FUNCTION(int,\,[List<int>? ])},
15648
15648
and it is obtained by implicitly
15649
15649
``passing the actual type argument \code{int}''
15650
15650
to the denoted generic instance method,
0 commit comments