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

Unified Diff: compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java

Issue 9288021: Issue 1287. Allow to invoke function literal. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: More tests, check for function name. Created 8 years, 11 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: compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java
index 35cdffa638426926047300ad4541a49b1220888f..9dbeaeb7364c30dc2f4c6ed4e2a28726003b1c9a 100644
--- a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java
+++ b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java
@@ -1332,7 +1332,7 @@ public class TypeAnalyzerTest extends TypeAnalyzerTestCase {
analyzeFail("{ void f() {} assert(f()); }", TypeErrorCode.VOID);
analyzeFail("{ void f() {} assert(f); }", TypeErrorCode.VOID);
analyzeFail("{ void f() {} while (f()); }", TypeErrorCode.VOID);
- analyzeFail("{ void f() {} ({ 'x': f() }); }", TypeErrorCode.VOID);
+ analyzeFail("{ void f() {}; ({ 'x': f() }); }", TypeErrorCode.VOID);
zundel 2012/01/26 18:26:36 you could add re-instate the old test but use 'ana
}
public void testWhileStatement() {

Powered by Google App Engine
This is Rietveld 408576698