Skip to content

Commit 501cefd

Browse files
committed
Adjust examples declaring non-nullable positional optional parameters with no default
1 parent 431bb2d commit 501cefd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

specification/dartLangSpec.tex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3216,7 +3216,7 @@ \subsubsection{The Method \code{noSuchMethod}}
32163216
in order to correctly override \code{noSuchMethod} in \code{Object}.
32173217
For instance, it can have signature
32183218
\code{noSuchMethod(Invocation i)} or
3219-
\code{noSuchMethod(Object i, [String s])},
3219+
\code{noSuchMethod(Object i, [String? s])},
32203220
but not
32213221
\code{noSuchMethod(Invocation i, String s)}.
32223222
This implies that the situation where \code{noSuchMethod} is invoked
@@ -3962,7 +3962,7 @@ \subsubsection{Generative Constructors}
39623962

39633963
\begin{dartCode}
39643964
class A \{
3965-
int x;
3965+
int? x;
39663966
A([this.x]);
39673967
\}
39683968
\end{dartCode}
@@ -3973,8 +3973,8 @@ \subsubsection{Generative Constructors}
39733973

39743974
\begin{dartCode}
39753975
class A \{
3976-
int x;
3977-
A([int x]): this.x = x;
3976+
int? x;
3977+
A([int? x]): this.x = x;
39783978
\}
39793979
\end{dartCode}
39803980

@@ -15307,7 +15307,7 @@ \subsubsection{Generic Method Instantiation}
1530715307
\}
1530815308
\\
1530915309
\CLASS{} B \EXTENDS{} /*\,or\,\,\IMPLEMENTS\,*/ A \{
15310-
X fi<X \EXTENDS{} num>(X x, [List<X> xs]) => x;
15310+
X fi<X \EXTENDS{} num>(X x, [List<X>? xs]) => x;
1531115311
\}
1531215312
\\
1531315313
\VOID{} main() \{
@@ -15319,7 +15319,7 @@ \subsubsection{Generic Method Instantiation}
1531915319
\commentary{%
1532015320
\noindent
1532115321
The function object that \code{f} is bound to at the end of \code{main}
15322-
has dynamic type \code{int\,\,\FUNCTION(int,\,[List<int>])},
15322+
has dynamic type \code{int\,\,\FUNCTION(int,\,[List<int>?])},
1532315323
and it is obtained by implicitly
1532415324
``passing the actual type argument \code{int}''
1532515325
to the denoted generic instance method,

0 commit comments

Comments
 (0)