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

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

Issue 18660007: Report EXPECTED_ONE_LIST_TYPE_ARGUMENTS. (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 dd0a0b2e6be65c389409d099c917901488a9052c..2de75ea2abde521cfd56f8bfdfbf12d50cdb70be 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
@@ -16,6 +16,7 @@ package com.google.dart.engine.parser;
import com.google.dart.engine.ast.CompilationUnit;
import com.google.dart.engine.ast.Expression;
import com.google.dart.engine.ast.FunctionExpression;
+import com.google.dart.engine.ast.ListLiteral;
import com.google.dart.engine.ast.MapLiteral;
import com.google.dart.engine.ast.SimpleIdentifier;
import com.google.dart.engine.ast.StringLiteral;
@@ -455,6 +456,14 @@ public class ErrorParserTest extends ParserTestCase {
parse("parseStringLiteral", "'$x$'", ParserErrorCode.MISSING_IDENTIFIER);
}
+ public void test_expectedOneListTypeArguments_two() throws Exception {
+ Expression expression = parse(
+ "parsePrimaryExpression",
+ "<int, int>[]",
+ ParserErrorCode.EXPECTED_ONE_LIST_TYPE_ARGUMENTS);
+ assertInstanceOf(ListLiteral.class, expression);
+ }
+
public void test_expectedStringLiteral() throws Exception {
StringLiteral expression = parse(
"parseStringLiteral",

Powered by Google App Engine
This is Rietveld 408576698