Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(338)

Unified Diff: pkg/analyzer/test/src/summary/resynthesize_test.dart

Issue 1569893002: Add some corner cases for resynthesis of field formal parameters. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/summary/resynthesize_test.dart
diff --git a/pkg/analyzer/test/src/summary/resynthesize_test.dart b/pkg/analyzer/test/src/summary/resynthesize_test.dart
index 4738af2aad49ae8156c90373025ba2473475be73..33dff3b18ca9b2bcea61217af4a5d304b88870e5 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_test.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_test.dart
@@ -594,6 +594,42 @@ class E {
checkLibrary('class C { factory C() => null; }');
}
+ test_class_constructor_field_formal_dynamic_dynamic() {
+ checkLibrary('class C { dynamic x; C(dynamic this.x); }');
+ }
+
+ test_class_constructor_field_formal_dynamic_typed() {
+ checkLibrary('class C { dynamic x; C(int this.x); }');
+ }
+
+ test_class_constructor_field_formal_dynamic_untyped() {
+ checkLibrary('class C { dynamic x; C(this.x); }');
+ }
+
+ test_class_constructor_field_formal_typed_dynamic() {
+ checkLibrary('class C { num x; C(dynamic this.x); }');
+ }
+
+ test_class_constructor_field_formal_typed_typed() {
+ checkLibrary('class C { num x; C(int this.x); }');
+ }
+
+ test_class_constructor_field_formal_typed_untyped() {
+ checkLibrary('class C { num x; C(this.x); }');
+ }
+
+ test_class_constructor_field_formal_untyped_dynamic() {
+ checkLibrary('class C { var x; C(dynamic this.x); }');
+ }
+
+ test_class_constructor_field_formal_untyped_typed() {
+ checkLibrary('class C { var x; C(int this.x); }');
+ }
+
+ test_class_constructor_field_formal_untyped_untyped() {
+ checkLibrary('class C { var x; C(this.x); }');
+ }
+
test_class_constructor_implicit() {
checkLibrary('class C {}');
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698