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

Unified Diff: pkg/analyzer2dart/test/end2end_test.dart

Issue 666863002: Support conditional expressions in analyzer2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 6 years, 2 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: pkg/analyzer2dart/test/end2end_test.dart
diff --git a/pkg/analyzer2dart/test/end2end_test.dart b/pkg/analyzer2dart/test/end2end_test.dart
index 6d2592997606a32a53a3491a6be40be4b8be4b63..8bdbfffaa2e3b25770a38453e02c4a22054ecc39 100644
--- a/pkg/analyzer2dart/test/end2end_test.dart
+++ b/pkg/analyzer2dart/test/end2end_test.dart
@@ -484,7 +484,18 @@ main(a) {
}
}
''');
+ });
+ test('If statement', () {
Paul Berry 2014/10/20 13:43:16 I think you mean 'Conditional expression'
+ checkResult('''
+main(a) {
+ return a ? print(0) : print(1);
+}
+''', '''
+main(a) {
+ return a ? print(0) : print(1);
+}
+''');
});
}
« no previous file with comments | « pkg/analyzer2dart/lib/src/cps_generator.dart ('k') | sdk/lib/_internal/compiler/implementation/cps_ir/cps_ir_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698