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

Unified Diff: tests/compiler/dart2js/unparser_test.dart

Issue 10582038: Add null check. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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: tests/compiler/dart2js/unparser_test.dart
diff --git a/tests/compiler/dart2js/unparser_test.dart b/tests/compiler/dart2js/unparser_test.dart
index ac7e7a46394116ccefbbc85ee22c62c347ec10c7..3c37a8512fb7c83e5e4ec431ce90be7e705c0ca4 100644
--- a/tests/compiler/dart2js/unparser_test.dart
+++ b/tests/compiler/dart2js/unparser_test.dart
@@ -31,6 +31,10 @@ testEmptyList() {
testUnparse('var x= [];');
}
+testClosure() {
+ testUnparse('var x=(var x)=> x;');
+}
+
testIndexedOperatorDecl() {
testUnparseMember('operator[](int i)=> null;');
}
@@ -39,5 +43,6 @@ main() {
testGenericTypes();
testForLoop();
testEmptyList();
+ testClosure();
testIndexedOperatorDecl();
}

Powered by Google App Engine
This is Rietveld 408576698