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; |