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

Side by Side Diff: testcases/type-propagation/async_function.baseline.txt

Issue 2473523004: Fix expected return type in async functions (Closed)
Patch Set: Also handle yield* Created 4 years, 1 month 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 | « testcases/strong-mode/async_function.baseline.txt ('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
(Empty)
1 library;
2 import self as self;
3 import "dart:async" as asy;
4 import "dart:core" as core;
5
6 static field core::List<core::String>/core::List* {other} stringList = <dynamic> ["bar"];
7 static method asyncString() → asy::Future<core::String>/core::String* {string} a sync {
8 return "foo";
9 }
10 static method asyncString2() → asy::Future<core::String>/core::String* {string} async {
11 return self::asyncString();
12 }
13 static method syncStarString() → core::Iterable<core::String>/Null sync* {
14 yield "foo";
15 yield* self::syncStarString2();
16 yield* self::stringList;
17 }
18 static method syncStarString2() → core::Iterable<core::String>/Null sync* {
19 yield "foo";
20 }
21 static method asyncStarString() → asy::Stream<core::String>/Null async* {
22 yield "foo";
23 yield* self::asyncStarString2();
24 yield await self::asyncString();
25 }
26 static method asyncStarString2() → asy::Stream<core::String>/Null async* {
27 yield "bar";
28 }
29 static method main() → dynamic/Null async {
30 core::String/core::Object* {*} str = await self::asyncString();
31 }
OLDNEW
« no previous file with comments | « testcases/strong-mode/async_function.baseline.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698