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

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

Issue 18341022: Report REDIRECTION_IN_NON_FACTORY_CONSTRUCTOR. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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/ErrorParserTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ErrorParserTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ErrorParserTest.java
index 0dadd136490b56440756f8849dacb38318735188..9974eefb42f60cd4a7e2d7933be945ed649907c7 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ErrorParserTest.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ErrorParserTest.java
@@ -1095,6 +1095,15 @@ public class ErrorParserTest extends ParserTestCase {
ParserErrorCode.POSITIONAL_PARAMETER_OUTSIDE_GROUP);
}
+ // TODO(scheglov)
Brian Wilkerson 2013/07/09 00:22:50 What's left to do?
+ public void test_redirectionInNonFactoryConstructor() throws Exception {
+ parse(
+ "parseClassMember",
+ new Object[] {"C"},
+ "C() = D;",
+ ParserErrorCode.REDIRECTION_IN_NON_FACTORY_CONSTRUCTOR);
+ }
+
public void test_staticAfterConst() throws Exception {
parse(
"parseClassMember",

Powered by Google App Engine
This is Rietveld 408576698