Skip to content

Commit fc2f9db

Browse files
committed
Adjust examples declaring non-nullable positional optional parameters with no default
1 parent 03e23e5 commit fc2f9db

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
@@ -3229,7 +3229,7 @@ \subsubsection{The Method \code{noSuchMethod}}
32293229
in order to correctly override \code{noSuchMethod} in \code{Object}.
32303230
For instance, it can have signature
32313231
\code{noSuchMethod(Invocation i)} or
3232-
\code{noSuchMethod(Object i, [String s])},
3232+
\code{noSuchMethod(Object i, [String? s])},
32333233
but not
32343234
\code{noSuchMethod(Invocation i, String s)}.
32353235
This implies that the situation where \code{noSuchMethod} is invoked
@@ -3975,7 +3975,7 @@ \subsubsection{Generative Constructors}
39753975

39763976
\begin{dartCode}
39773977
class A \{
3978-
int x;
3978+
int? x;
39793979
A([this.x]);
39803980
\}
39813981
\end{dartCode}
@@ -3986,8 +3986,8 @@ \subsubsection{Generative Constructors}
39863986

39873987
\begin{dartCode}
39883988
class A \{
3989-
int x;
3990-
A([int x]): this.x = x;
3989+
int? x;
3990+
A([int? x]): this.x = x;
39913991
\}
39923992
\end{dartCode}
39933993

@@ -15352,7 +15352,7 @@ \subsubsection{Generic Method Instantiation}
1535215352
\}
1535315353
\\
1535415354
\CLASS{} B \EXTENDS{} /*\,or\,\,\IMPLEMENTS\,*/ A \{
15355-
X fi<X \EXTENDS{} num>(X x, [List<X> xs]) => x;
15355+
X fi<X \EXTENDS{} num>(X x, [List<X>? xs]) => x;
1535615356
\}
1535715357
\\
1535815358
\VOID{} main() \{
@@ -15364,7 +15364,7 @@ \subsubsection{Generic Method Instantiation}
1536415364
\commentary{%
1536515365
\noindent
1536615366
The function object that \code{f} is bound to at the end of \code{main}
15367-
has dynamic type \code{int\,\,\FUNCTION(int,\,[List<int>])},
15367+
has dynamic type \code{int\,\,\FUNCTION(int,\,[List<int>?])},
1536815368
and it is obtained by implicitly
1536915369
``passing the actual type argument \code{int}''
1537015370
to the denoted generic instance method,

0 commit comments

Comments
 (0)