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

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

Issue 2900553003: Fix type inference of factory constructor invocations. (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 unified diff | Download patch
OLDNEW
(Empty)
1 library test;
2 import self as self;
3 import "dart:core" as core;
4 import "dart:math" as math;
5
6 static method test2() → dynamic {
7 core::List<core::num> o;
8 core::Iterable<core::num> y = o.{core::Iterable::map}<core::num>((core::num x) → core::num {
9 if(math::Random::•().{math::Random::nextBool}()) {
10 return x.{core::num::toInt}().{core::num::+}(1);
11 }
12 else {
13 return x.{core::num::toDouble}();
14 }
15 });
16 core::Iterable<core::num> w = y;
17 core::Iterable<core::int> z = y;
18 }
19 static method main() → dynamic {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698