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

Side by Side Diff: pkg/front_end/testcases/inference/overloaded_int_operators.dart.dartk.expect

Issue 2883083002: Make type inference handle overloaded arithmetic operations. (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
5 static method main() → dynamic {
6 core::num n = 1;
7 core::int i = 1;
8 core::double d = 1.0;
9 dynamic ddPlus = d.+(d);
10 dynamic ddMinus = d.-(d);
11 dynamic ddTimes = d.*(d);
12 dynamic ddMod = d.%(d);
13 dynamic diPlus = d.+(i);
14 dynamic diMinus = d.-(i);
15 dynamic diTimes = d.*(i);
16 dynamic diMod = d.%(i);
17 dynamic dnPlus = d.+(n);
18 dynamic dnMinus = d.-(n);
19 dynamic dnTimes = d.*(n);
20 dynamic dnMod = d.%(n);
21 dynamic idPlus = i.+(d);
22 dynamic idMinus = i.-(d);
23 dynamic idTimes = i.*(d);
24 dynamic idMod = i.%(d);
25 dynamic iiPlus = i.+(i);
26 dynamic iiMinus = i.-(i);
27 dynamic iiTimes = i.*(i);
28 dynamic iiMod = i.%(i);
29 dynamic inPlus = i.+(n);
30 dynamic inMinus = i.-(n);
31 dynamic inTimes = i.*(n);
32 dynamic inMod = i.%(n);
33 dynamic ndPlus = n.+(d);
34 dynamic ndMinus = n.-(d);
35 dynamic ndTimes = n.*(d);
36 dynamic ndMod = n.%(d);
37 dynamic niPlus = n.+(i);
38 dynamic niMinus = n.-(i);
39 dynamic niTimes = n.*(i);
40 dynamic niMod = n.%(i);
41 dynamic nnPlus = n.+(n);
42 dynamic nnMinus = n.-(n);
43 dynamic nnTimes = n.*(n);
44 dynamic nnMod = n.%(n);
45 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698