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

Unified Diff: tests/language/await_future_test.dart

Issue 543433003: Parse await as part of an unary expression. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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
« 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
diff --git a/tests/language/await_future_test.dart b/tests/language/await_future_test.dart
index 2652d1d5b956737b89cbbb8d5c78e1f2453b5212..54631f343f255cef3b8acc50628135f33f8323d9 100644
--- a/tests/language/await_future_test.dart
+++ b/tests/language/await_future_test.dart
@@ -70,6 +70,10 @@ nesting() async {
}
}
+awaitAsUnary(a,b) async {
+ return await a + await b;
+}
+
awaitIf(p) async {
if (p < (await bar(5))) {
return "p<5";
@@ -189,5 +193,7 @@ main() async {
Expect.equals(15, result);
result = await awaitNestedWhile(4,6);
Expect.equals(24, result);
+ result = await awaitAsUnary(bar(1), bar(2));
+ Expect.equals(3, result);
}
}
« 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