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

Unified Diff: pkg/analyzer/test/generated/parser_test.dart

Issue 900683002: Fix for issue 22178 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 | « pkg/analyzer/lib/src/generated/parser.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/generated/parser_test.dart
diff --git a/pkg/analyzer/test/generated/parser_test.dart b/pkg/analyzer/test/generated/parser_test.dart
index 82cb665e7cce3c24e2146d865065fa1c3a317282..db3753cddd31fd19819a810935c1ee551463c70f 100644
--- a/pkg/analyzer/test/generated/parser_test.dart
+++ b/pkg/analyzer/test/generated/parser_test.dart
@@ -779,6 +779,18 @@ class ErrorParserTest extends ParserTestCase {
[ParserErrorCode.ABSTRACT_TYPEDEF]);
}
+ void test_annotationOnEnumConstant_first() {
+ ParserTestCase.parseCompilationUnit(
+ "enum E { @override C }",
+ [ParserErrorCode.ANNOTATION_ON_ENUM_CONSTANT]);
+ }
+
+ void test_annotationOnEnumConstant_middle() {
+ ParserTestCase.parseCompilationUnit(
+ "enum E { C, @override D, E }",
+ [ParserErrorCode.ANNOTATION_ON_ENUM_CONSTANT]);
+ }
+
void test_assertDoesNotTakeAssignment() {
ParserTestCase.parse4(
"parseAssertStatement",
« no previous file with comments | « pkg/analyzer/lib/src/generated/parser.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698