Skip to content

Commit cb3d8ee

Browse files
committed
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 b6df629 commit cb3d8ee

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
@@ -100,7 +100,7 @@ class GetTestability {
100100
});
101101
js.context['getAllAngularTestabilities'] = _jsify(() {
102102
List<Testability> testabilities = registry.getAllTestabilities();
103-
List<PublicTestability> publicTestabilities = testabilities
103+
var publicTestabilities = testabilities
104104
.map((testability) => new PublicTestability(testability));
105105
return _jsify(publicTestabilities);
106106
});

0 commit comments

Comments
 (0)