Skip to content

Commit 8b6079a

Browse files
committed
Change noSuchMethod example to be correct with null safety (and still correct in pre-nnbd code)
1 parent 180b5ba commit 8b6079a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

specification/dartLangSpec.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2951,7 +2951,7 @@ \subsubsection{The Method \code{noSuchMethod}}
29512951
in order to correctly override \code{noSuchMethod} in \code{Object}.
29522952
For instance, it can have signature
29532953
\code{noSuchMethod(Invocation i)} or
2954-
\code{noSuchMethod(Object i, [String s])},
2954+
\code{noSuchMethod(Object i, [String s = ''])},
29552955
but not
29562956
\code{noSuchMethod(Invocation i, String s)}.
29572957
This implies that the situation where \code{noSuchMethod} is invoked

0 commit comments

Comments
 (0)