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

Side by Side Diff: pkg/front_end/testcases/inference/downwards_inference_yield_yield_star.dart.strong.expect

Issue 2917853002: Compute correct return type for factory methods. (Closed)
Patch Set: Include changes from CL 2916533003. Created 3 years, 6 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 unified diff | Download patch
« no previous file with comments | « pkg/front_end/testcases/inference/downwards_inference_for_each.dart.strong.expect ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 library test; 1 library test;
2 import self as self; 2 import self as self;
3 import "dart:core" as core; 3 import "dart:core" as core;
4 import "dart:async" as asy; 4 import "dart:async" as asy;
5 5
6 abstract class MyStream<T extends core::Object> extends asy::Stream<self::MyStre am::T> { 6 abstract class MyStream<T extends core::Object> extends asy::Stream<self::MyStre am::T> {
7 static factory •<T extends core::Object>() → dynamic 7 static factory •<T extends core::Object>() → self::MyStream<self::MyStream::•: :T>
8 return null; 8 return null;
9 } 9 }
10 static method foo() → asy::Stream<core::List<core::int>> /* originally async* */ { 10 static method foo() → asy::Stream<core::List<core::int>> /* originally async* */ {
11 dynamic :controller; 11 dynamic :controller;
12 dynamic :async_op_then; 12 dynamic :async_op_then;
13 dynamic :async_op_error; 13 dynamic :async_op_error;
14 dynamic :await_jump_var = 0; 14 dynamic :await_jump_var = 0;
15 dynamic :await_ctx_var; 15 dynamic :await_ctx_var;
16 dynamic :saved_try_context_var0; 16 dynamic :saved_try_context_var0;
17 dynamic :saved_try_context_var1; 17 dynamic :saved_try_context_var1;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 :iterator.isYieldEach = true; 72 :iterator.isYieldEach = true;
73 :iterator._current = core::List::_internal<core::Map<core::int, core::in t>>(); 73 :iterator._current = core::List::_internal<core::Map<core::int, core::in t>>();
74 [yield] true; 74 [yield] true;
75 } 75 }
76 } 76 }
77 return false; 77 return false;
78 } 78 }
79 return new core::_SyncIterable::•(:sync_op); 79 return new core::_SyncIterable::•(:sync_op);
80 } 80 }
81 static method main() → dynamic {} 81 static method main() → dynamic {}
OLDNEW
« no previous file with comments | « pkg/front_end/testcases/inference/downwards_inference_for_each.dart.strong.expect ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698