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

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

Issue 2865623003: Implement type inference of constructor invocations in Fasta. (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 printInt(core::int x) → void
7 return core::print(x);
8 static method printDouble(core::double x) → void
9 return core::print(x);
10 static method myMax(core::num x, core::num y) → core::num
11 return math::max(x, y);
12 static method f() → dynamic {
13 self::printInt(math::max(1, 2));
14 self::printInt(math::min(1, 2));
15 self::printDouble(math::max(1.0, 2.0));
16 self::printDouble(math::min(1.0, 2.0));
17 self::printInt(self::myMax(1, 2));
18 self::printInt(self::myMax(1, 2) as core::int);
19 self::printInt(math::max(1, 2.0));
20 self::printInt(math::min(1, 2.0));
21 self::printDouble(math::max(1, 2.0));
22 self::printDouble(math::min(1, 2.0));
23 self::printInt(math::min("hi", "there"));
24 }
25 static method main() → dynamic {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698