Skip to content
This repository has been archived by the owner on Sep 16, 2022. It is now read-only.

Commit

Permalink
Add a second type paramter, U, on mapNestedViews; U is the type of th…
Browse files Browse the repository at this point in the history
…e argument of [callback]. Generated template.dart files fill in a type for the argument of [callback], so using dynamic here results in a "uses dynamic as bottom" error.

See discussion here: dart-lang/sdk#29630

PiperOrigin-RevId: 183131552
  • Loading branch information
srawlins authored and alorenzen committed Jan 29, 2018
1 parent c8d7d02 commit 15a2437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion angular/lib/src/core/linker/view_container.dart
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class ViewContainer extends ComponentLoader implements ViewContainerRef {
}
}

List<T> mapNestedViews<T>(List<T> Function(dynamic) callback) {
List<T> mapNestedViews<T, U extends AppView>(List<T> Function(U) callback) {
final nestedViews = this.nestedViews;
if (nestedViews == null || nestedViews.isEmpty) {
return const [];
Expand Down

0 comments on commit 15a2437

Please sign in to comment.