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

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

Issue 2655243007: Fix for invalid 'extends/implements/with SomeEnum'. (Closed)
Patch Set: Created 3 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
Index: pkg/analyzer/test/src/summary/resynthesize_common.dart
diff --git a/pkg/analyzer/test/src/summary/resynthesize_common.dart b/pkg/analyzer/test/src/summary/resynthesize_common.dart
index 3d8874ce60ffddf97f776c353aef330523d41b43..2ffd0586d88a28046558a3f226e016b9ac73b143 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_common.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_common.dart
@@ -2922,6 +2922,28 @@ enum E {
checkLibrary('enum E1 { v1 } enum E2 { v2 }');
}
+ test_error_extendsEnum() {
+ checkLibrary('''
+enum E {a, b, c}
+
+class M {}
+
+class A extends E {
+ foo() {}
+}
+
+class B implements E, M {
+ foo() {}
+}
+
+class C extends Object with E, M {
+ foo() {}
+}
+
+class D = Object with M, E;
+''');
+ }
+
test_executable_parameter_type_typedef() {
checkLibrary(r'''
typedef F(int p);
« pkg/analyzer/lib/src/summary/link.dart ('K') | « pkg/analyzer/lib/src/summary/link.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698