Skip to content

Commit 33a146f

Browse files
committed
Change noSuchMethod example to be correct with null safety (and still correct in pre-nnbd code)
1 parent 3f3b2ad commit 33a146f

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
@@ -2965,7 +2965,7 @@ \subsubsection{The Method \code{noSuchMethod}}
29652965
in order to correctly override \code{noSuchMethod} in \code{Object}.
29662966
For instance, it can have signature
29672967
\code{noSuchMethod(Invocation i)} or
2968-
\code{noSuchMethod(Object i, [String s])},
2968+
\code{noSuchMethod(Object i, [String s = ''])},
29692969
but not
29702970
\code{noSuchMethod(Invocation i, String s)}.
29712971
This implies that the situation where \code{noSuchMethod} is invoked

0 commit comments

Comments
 (0)