Skip to content

Commit c93551d

Browse files
authored
Correct typo about extension specificity (#1598)
1 parent ef51277 commit c93551d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

accepted/2.7/static-extension-methods/feature-specification.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ extension SmartList<T> on List<T> {
293293
x.doTheSmartThing(print);
294294
```
295295

296-
Here both the extensions apply, but the `SmartList` extension is more specific than the `SmartIterable` extension because `List<dynamic>` &lt;: `Iterable<dynamic>`.
296+
Here both the extensions apply, but the `SmartList` extension is more specific than the `SmartIterable` extension because `List<int>` &lt;: `Iterable<int>`.
297297

298298
Example:
299299

specification/dartLangSpec.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6207,7 +6207,7 @@ \subsubsection{Specificity of an Extension}
62076207
\commentary{%
62086208
Here both of the extensions apply,
62096209
but \code{ExtendList} is more specific than \code{ExtendIterable} because
6210-
\SubtypeNE{\code{List<dynamic>}}{\code{Iterable<dynamic>}}.%
6210+
\SubtypeNE{\code{List<int>}}{\code{Iterable<int>}}.%
62116211
}
62126212

62136213
\begin{dartCode}

0 commit comments

Comments
 (0)