Skip to content

Commit 574bbea

Browse files
goderbauerhankduan
authored andcommitted
fix(Testability): fix type error in getAllAngularTestability (dart)
This fixes the following type error that is thrown when calling getAllAngularTestability() while running Dartium in checked mode: type 'MappedListIterable' is not a subtype of type 'List<PublicTestability>' of 'publicTestabilities'.
1 parent a1c53ee commit 574bbea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/angular2/src/core/testability/get_testability.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class GetTestability {
9797
});
9898
js.context['getAllAngularTestabilities'] = _jsify(() {
9999
List<Testability> testabilities = registry.getAllTestabilities();
100-
List<PublicTestability> publicTestabilities = testabilities
100+
var publicTestabilities = testabilities
101101
.map((testability) => new PublicTestability(testability));
102102
return _jsify(publicTestabilities);
103103
});

0 commit comments

Comments
 (0)