Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ extension SmartList<T> on List<T> {
x.doTheSmartThing(print);
```

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

Example:

Expand Down
2 changes: 1 addition & 1 deletion specification/dartLangSpec.tex
Original file line number Diff line number Diff line change
Expand Up @@ -6207,7 +6207,7 @@ \subsubsection{Specificity of an Extension}
\commentary{%
Here both of the extensions apply,
but \code{ExtendList} is more specific than \code{ExtendIterable} because
\SubtypeNE{\code{List<dynamic>}}{\code{Iterable<dynamic>}}.%
\SubtypeNE{\code{List<int>}}{\code{Iterable<int>}}.%
}

\begin{dartCode}
Expand Down