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

Unified Diff: tests/compiler/dart2js/kernel/impact_test.dart

Issue 2848243002: Register local functions with async markers (Closed)
Patch Set: Created 3 years, 8 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 | « pkg/compiler/lib/src/ssa/kernel_impact.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/kernel/impact_test.dart
diff --git a/tests/compiler/dart2js/kernel/impact_test.dart b/tests/compiler/dart2js/kernel/impact_test.dart
index f7f0df390421b357ff5703dbc6b76fd27de3f08d..a45247d6e6401865b93dc35567516e09879b8a01 100644
--- a/tests/compiler/dart2js/kernel/impact_test.dart
+++ b/tests/compiler/dart2js/kernel/impact_test.dart
@@ -99,6 +99,12 @@ main() {
testSyncStar();
testAsync();
testAsyncStar();
+ testLocalSyncStar();
+ testLocalAsync();
+ testLocalAsyncStar();
+ testAnonymousSyncStar();
+ testAnonymousAsync();
+ testAnonymousAsyncStar();
testIfThen();
testIfThenElse();
testForIn(null);
@@ -255,6 +261,28 @@ testSetIfNull(o) => o ??= 42;
testSyncStar() sync* {}
testAsync() async {}
testAsyncStar() async* {}
+testLocalSyncStar() {
+ local() sync* {}
+ return local;
+}
+testLocalAsync() {
+ local() async {}
+ return local;
+}
+testLocalAsyncStar() {
+ local() async* {}
+ return local;
+}
+testAnonymousSyncStar() {
+ return () sync* {};
+}
+testAnonymousAsync() {
+ return () async {};
+}
+testAnonymousAsyncStar() {
+ return () async* {};
+}
+
testIfThen() {
if (false) return 42;
return 1;
« no previous file with comments | « pkg/compiler/lib/src/ssa/kernel_impact.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698