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

Unified Diff: compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java

Issue 10825079: Bug fix for issue 4256 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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
« no previous file with comments | « compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java
===================================================================
--- compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java (revision 10015)
+++ compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java (working copy)
@@ -181,6 +181,12 @@
errEx(ParserErrorCode.NAMED_PARAMETER_NOT_ALLOWED, 1, 18, 5));
}
+ public void test_missingEndOfOptionalParameters() {
+ parseExpectErrors(
+ "class A {void m(var p1, [var p2 = const []) {} }",
+ errEx(ParserErrorCode.MISSING_NAMED_PARAMETER_END, 1, 43, 1));
+ }
+
public void test_namedParameterValue_inOperator() {
parseExpectErrors(
"class A { operator []=(int a, [int b]); }",
« no previous file with comments | « compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698