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

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

Issue 11533010: Issue 6710. Report error for function libteral with return type and name. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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: compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java b/compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java
index 2e908c18d3ac6b59b88277c01f54867fd868d336..5f90a7975d98f3f2bd9098aef1325d4a660617e3 100644
--- a/compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java
+++ b/compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java
@@ -1010,12 +1010,12 @@ public class SyntaxTest extends AbstractParserTest {
" }",
" }",
" L: switch(1) {",
- " case 1: var result = f() { continue L; };", // bad
+ " case 1: var result = () { continue L; };", // bad
" }",
" }",
"}"),
ParserErrorCode.CONTINUE_IN_CASE_MUST_HAVE_LABEL, 4, 23,
- ParserErrorCode.CONTINUE_OUTSIDE_OF_LOOP, 12, 42);
+ ParserErrorCode.CONTINUE_OUTSIDE_OF_LOOP, 12, 41);
}
public void testRedundantAbruptlyTermainatedCaseStatement() throws Exception {

Powered by Google App Engine
This is Rietveld 408576698