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

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

Issue 2329483003: Keep only InterfaceType(s) in resynthesized lists of interfaces and mixins. (Closed)
Patch Set: Replace not InterfaceType supertype with Object. Created 4 years, 3 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 | « pkg/analyzer/lib/src/dart/element/element.dart ('k') | 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 4a378a05f3bb11f7d25e1dbe75c1bef55d84bdc8..8a4b4cef7f6d0cd12e141c0dabf156a0debcec53 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_test.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_test.dart
@@ -1722,6 +1722,11 @@ class E {}''');
checkLibrary('class C implements D, E {} class D {} class E {}');
}
+ test_class_interfaces_unresolved() {
+ checkLibrary('class C implements X, Y, Z {} class X {} class Z {}',
+ allowErrors: true);
+ }
+
test_class_method_abstract() {
checkLibrary('abstract class C { f(); }');
}
@@ -1746,6 +1751,11 @@ class E {}''');
checkLibrary('class C extends Object with D, E {} class D {} class E {}');
}
+ test_class_mixins_unresolved() {
+ checkLibrary('class C extends Object with X, Y, Z; class X {} class Z {}',
+ allowErrors: true);
+ }
+
test_class_setter_abstract() {
checkLibrary('abstract class C { void set x(int value); }');
}
@@ -1774,6 +1784,10 @@ class E {}''');
checkLibrary('class C extends D {} class D {}');
}
+ test_class_supertype_unresolved() {
+ checkLibrary('class C extends D {}', allowErrors: true);
+ }
+
test_class_type_parameters() {
checkLibrary('class C<T, U> {}');
}
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/element.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698