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

Unified Diff: pkg/front_end/testcases/inference/block_bodied_lambdas_sync_star.dart.strong.expect

Issue 2898313002: Fix type inference of yield* statements (Closed)
Patch Set: Created 3 years, 7 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/front_end/test/fasta/strong.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/testcases/inference/block_bodied_lambdas_sync_star.dart.strong.expect
diff --git a/pkg/front_end/testcases/inference/block_bodied_lambdas_sync_star.dart.strong.expect b/pkg/front_end/testcases/inference/block_bodied_lambdas_sync_star.dart.strong.expect
new file mode 100644
index 0000000000000000000000000000000000000000..dff6191dff13ca81ebb3ac1f4f3c13df757c89d7
--- /dev/null
+++ b/pkg/front_end/testcases/inference/block_bodied_lambdas_sync_star.dart.strong.expect
@@ -0,0 +1,27 @@
+library test;
+import self as self;
+import "dart:core" as core;
+
+static method main() → dynamic {
+ () → core::Iterable<core::num> f = () → core::Iterable<core::num> /* originally sync* */ {
+ dynamic :await_jump_var = 0;
+ dynamic :await_ctx_var;
+ function :sync_op(core::Iterator<dynamic> :iterator) → core::bool yielding {
+ {
+ {
+ :iterator._current = 1;
+ [yield] true;
+ }
+ {
+ :iterator.isYieldEach = true;
+ :iterator._current = <core::num>[3, 4.0];
+ [yield] true;
+ }
+ }
+ return false;
+ }
+ return new core::_SyncIterable::•(:sync_op);
+ };
+ core::Iterable<core::num> g = f.call();
+ core::Iterable<core::int> h = f.call();
+}
« no previous file with comments | « pkg/front_end/test/fasta/strong.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698