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

Unified Diff: tests/language/await_future_test.dart

Issue 740823002: Allow await expressions in arrow-style functions (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 1 month 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 | « runtime/vm/parser.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/await_future_test.dart
===================================================================
--- tests/language/await_future_test.dart (revision 41931)
+++ tests/language/await_future_test.dart (working copy)
@@ -20,6 +20,8 @@
return b;
}
+faa() async => (await bar('faa')).length;
+
quaz(p) async {
var x = 0;
try {
@@ -184,6 +186,8 @@
for (int i = 0; i < 10; i++) {
result = await foo();
Expect.equals(30, result);
+ result = await faa();
+ Expect.equals(3, result);
result = await quaz(17);
Expect.equals(17, result);
result = await quazz();
« no previous file with comments | « runtime/vm/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698