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

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

Issue 2904263003: Implement type inference for await expressions in front_end. (Closed)
Patch Set: 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
OLDNEW
(Empty)
1 library test;
2 import self as self;
3 import "dart:core" as core;
4 import "dart:async" as asy;
5
6 static method add(core::int x) → void {}
7 static method add2(core::int y) → dynamic {}
8 static method test() → dynamic {
9 asy::Future<core::int> f;
10 asy::Future<void> a = f.{asy::Future::then}<void>(self::add);
11 asy::Future<dynamic> b = f.{asy::Future::then}<dynamic>(self::add2);
12 }
13 static method main() → dynamic {}
OLDNEW
« no previous file with comments | « pkg/front_end/testcases/inference/future_or_subtyping.dart ('k') | pkg/front_end/testcases/inference/future_then.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698