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

Unified Diff: pkg/front_end/testcases/inference/overloaded_int_operators.dart.direct.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 side-by-side diff with in-line comments
Download patch
Index: pkg/front_end/testcases/inference/overloaded_int_operators.dart.direct.expect
diff --git a/pkg/front_end/testcases/inference/overloaded_int_operators.dart.direct.expect b/pkg/front_end/testcases/inference/overloaded_int_operators.dart.direct.expect
new file mode 100644
index 0000000000000000000000000000000000000000..b45cd7e6d59cc029b24973342dd14d5cb771be5e
--- /dev/null
+++ b/pkg/front_end/testcases/inference/overloaded_int_operators.dart.direct.expect
@@ -0,0 +1,45 @@
+library test;
+import self as self;
+import "dart:core" as core;
+
+static method main() → dynamic {
+ core::num n = 1;
+ core::int i = 1;
+ core::double d = 1.0;
+ dynamic ddPlus = d.+(d);
+ dynamic ddMinus = d.-(d);
+ dynamic ddTimes = d.*(d);
+ dynamic ddMod = d.%(d);
+ dynamic diPlus = d.+(i);
+ dynamic diMinus = d.-(i);
+ dynamic diTimes = d.*(i);
+ dynamic diMod = d.%(i);
+ dynamic dnPlus = d.+(n);
+ dynamic dnMinus = d.-(n);
+ dynamic dnTimes = d.*(n);
+ dynamic dnMod = d.%(n);
+ dynamic idPlus = i.+(d);
+ dynamic idMinus = i.-(d);
+ dynamic idTimes = i.*(d);
+ dynamic idMod = i.%(d);
+ dynamic iiPlus = i.+(i);
+ dynamic iiMinus = i.-(i);
+ dynamic iiTimes = i.*(i);
+ dynamic iiMod = i.%(i);
+ dynamic inPlus = i.+(n);
+ dynamic inMinus = i.-(n);
+ dynamic inTimes = i.*(n);
+ dynamic inMod = i.%(n);
+ dynamic ndPlus = n.+(d);
+ dynamic ndMinus = n.-(d);
+ dynamic ndTimes = n.*(d);
+ dynamic ndMod = n.%(d);
+ dynamic niPlus = n.+(i);
+ dynamic niMinus = n.-(i);
+ dynamic niTimes = n.*(i);
+ dynamic niMod = n.%(i);
+ dynamic nnPlus = n.+(n);
+ dynamic nnMinus = n.-(n);
+ dynamic nnTimes = n.*(n);
+ dynamic nnMod = n.%(n);
+}

Powered by Google App Engine
This is Rietveld 408576698