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

Unified Diff: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/SimpleParserTest.java

Issue 14654013: Report CompileTimeErrorCode.INVALID_CONST_FACTORY (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Report CONST_FACTORY in parser Created 7 years, 7 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: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/SimpleParserTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/SimpleParserTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/SimpleParserTest.java
index 43c98bab75017f252f6242c5d0760c57ced63547..73b7b83753a5f2b7c7ad323abbc8271da6289d57 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/SimpleParserTest.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/SimpleParserTest.java
@@ -119,6 +119,10 @@ public class SimpleParserTest extends ParserTestCase {
assertEquals("two\\nlines", computeStringValue("r'two\\nlines'"));
}
+ public void test_constFactory() throws Exception {
+ parse("parseClassMember", new Object[] {"C"}, "const factory C() = A;");
+ }
+
public void test_createSyntheticIdentifier() throws Exception {
SimpleIdentifier identifier = createSyntheticIdentifier();
assertTrue(identifier.isSynthetic());

Powered by Google App Engine
This is Rietveld 408576698