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

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

Issue 2924853003: Fix implementation of fold() in analyzer's mock SDK. (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
5 static method test() → void {
6 core::List<core::int> o;
7 core::int y = o.{core::Iterable::fold}<core::int>(0, (core::int x, core::int y ) → core::int => x.{core::num::+}(y));
8 dynamic z = o.{core::Iterable::fold}<dynamic>(0, (dynamic x, core::int y) → dy namic => x.+(y));
9 y = z;
10 }
11 static method functionExpressionInvocation() → void {
12 core::List<core::int> o;
13 core::int y = o.{core::Iterable::fold}.call<core::int>(0, (core::int x, core:: int y) → core::int => x.{core::num::+}(y));
14 dynamic z = o.{core::Iterable::fold}.call<dynamic>(0, (dynamic x, core::int y) → dynamic => x.+(y));
15 y = z;
16 }
17 static method main() → dynamic {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698