This repository was archived by the owner on Sep 16, 2022. It is now read-only.
File tree 3 files changed +10
-10
lines changed
_tests/test/core/change_detection
lib/src/compiler/view_compiler 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -57,8 +57,5 @@ class SomeDirective {
57
57
String dataXyz = 'abc' ;
58
58
bool disabled = true ;
59
59
void handleClick (Event e) {}
60
-
61
- // TODO: Should be 'KeyEvent'.
62
- // See https://github.com/dart-lang/angular/issues/915.
63
- void handleKeyPress (Event e) {}
60
+ void handleKeyPress (KeyEvent e) {}
64
61
}
Original file line number Diff line number Diff line change @@ -220,9 +220,12 @@ class Comp {
220
220
D. Giving C local visibility incorrectly prevented this assignment and
221
221
generated code to inject D from the parent injector.
222
222
223
- * Fixed a bug where `Provider<List<T>>` was treated as `Provider<List>` when
224
- compiled as part of the view compiler (`@Component.providers:`). Now the
225
- additional generic types flow through the compiler.
223
+ * Fixed a bug where `Provider<List<T>>` was treated as `Provider<List>` when
224
+ compiled as part of the view compiler (`@Component.providers:`). Now the
225
+ additional generic types flow through the compiler.
226
+
227
+ * Fixed a case where provider fields weren't type annotated. In some cases
228
+ this led to DDC warnings that are to become errors.
226
229
227
230
## 5.0.0-alpha+5
228
231
Original file line number Diff line number Diff line change @@ -871,14 +871,14 @@ class CompileView implements AppViewBuilder {
871
871
)
872
872
: o.DYNAMIC_TYPE );
873
873
} else {
874
- resolvedProviderValueExpr = providerValueExpressions[ 0 ] ;
874
+ resolvedProviderValueExpr = providerValueExpressions.first ;
875
875
if (provider.typeArgument != null ) {
876
876
type = o.importType (
877
877
provider.typeArgument,
878
878
provider.typeArgument.genericTypes,
879
879
);
880
880
} else {
881
- type = providerValueExpressions[ 0 ] .type;
881
+ type = resolvedProviderValueExpr .type;
882
882
}
883
883
}
884
884
@@ -986,7 +986,7 @@ class CompileView implements AppViewBuilder {
986
986
? o.DYNAMIC_TYPE
987
987
: (providerHasChangeDetector ? changeDetectorType : type)));
988
988
}
989
- return new o.ReadClassMemberExpr (propName);
989
+ return new o.ReadClassMemberExpr (propName, type );
990
990
}
991
991
992
992
@override
You can’t perform that action at this time.
0 commit comments