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

Unified Diff: pkg/front_end/testcases/inference/infer_assign_to_static_upwards.dart.strong.expect

Issue 2933643002: Implement type inference for assignments to a static variable. (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 side-by-side diff with in-line comments
Download patch
Index: pkg/front_end/testcases/inference/infer_assign_to_static_upwards.dart.strong.expect
diff --git a/pkg/front_end/testcases/inference/infer_assign_to_static_upwards.dart.strong.expect b/pkg/front_end/testcases/inference/infer_assign_to_static_upwards.dart.strong.expect
new file mode 100644
index 0000000000000000000000000000000000000000..84f13c0de8528e81bb71d263810dc3ab1c04135c
--- /dev/null
+++ b/pkg/front_end/testcases/inference/infer_assign_to_static_upwards.dart.strong.expect
@@ -0,0 +1,48 @@
+library test;
+import self as self;
+import "dart:core" as core;
+
+static field core::int topLevelInt;
+static field core::num topLevelNum;
+static field core::double topLevelDouble;
+static method getInt() → core::int
+ return 0;
+static method getNum() → core::num
+ return 0;
+static method getDouble() → core::double
+ return 0.0;
+static method test1() → void {
+ core::int v1 = self::topLevelInt = self::getInt();
+ core::num v2 = self::topLevelInt = self::getNum();
+ core::int v4 = let final dynamic #t1 = self::topLevelInt in #t1.{core::num::==}(null) ? self::topLevelInt = self::getInt() : #t1;
+ core::num v5 = let final dynamic #t2 = self::topLevelInt in #t2.{core::num::==}(null) ? self::topLevelInt = self::getNum() : #t2;
+ core::int v7 = self::topLevelInt = self::topLevelInt.{core::num::+}(self::getInt());
+ core::num v8 = self::topLevelInt = self::topLevelInt.{core::num::+}(self::getNum());
+ core::int v10 = self::topLevelInt = self::topLevelInt.{core::num::+}(1);
+ core::int v11 = let final dynamic #t3 = self::topLevelInt in let final dynamic #t4 = self::topLevelInt = #t3.{core::num::+}(1) in #t3;
+}
+static method test2() → void {
+ core::int v1 = self::topLevelNum = self::getInt();
+ core::num v2 = self::topLevelNum = self::getNum();
+ core::double v3 = self::topLevelNum = self::getDouble();
+ core::num v4 = let final dynamic #t5 = self::topLevelNum in #t5.{core::num::==}(null) ? self::topLevelNum = self::getInt() : #t5;
+ core::num v5 = let final dynamic #t6 = self::topLevelNum in #t6.{core::num::==}(null) ? self::topLevelNum = self::getNum() : #t6;
+ core::num v6 = let final dynamic #t7 = self::topLevelNum in #t7.{core::num::==}(null) ? self::topLevelNum = self::getDouble() : #t7;
+ core::num v7 = self::topLevelNum = self::topLevelNum.{core::num::+}(self::getInt());
+ core::num v8 = self::topLevelNum = self::topLevelNum.{core::num::+}(self::getNum());
+ core::num v9 = self::topLevelNum = self::topLevelNum.{core::num::+}(self::getDouble());
+ core::num v10 = self::topLevelNum = self::topLevelNum.{core::num::+}(1);
+ core::num v11 = let final dynamic #t8 = self::topLevelNum in let final dynamic #t9 = self::topLevelNum = #t8.{core::num::+}(1) in #t8;
+}
+static method test3() → void {
+ core::num v2 = self::topLevelDouble = self::getNum();
+ core::double v3 = self::topLevelDouble = self::getDouble();
+ core::num v5 = let final dynamic #t10 = self::topLevelDouble in #t10.{core::num::==}(null) ? self::topLevelDouble = self::getNum() : #t10;
+ core::double v6 = let final dynamic #t11 = self::topLevelDouble in #t11.{core::num::==}(null) ? self::topLevelDouble = self::getDouble() : #t11;
+ core::double v7 = self::topLevelDouble = self::topLevelDouble.{core::double::+}(self::getInt());
+ core::double v8 = self::topLevelDouble = self::topLevelDouble.{core::double::+}(self::getNum());
+ core::double v9 = self::topLevelDouble = self::topLevelDouble.{core::double::+}(self::getDouble());
+ core::double v10 = self::topLevelDouble = self::topLevelDouble.{core::double::+}(1);
+ core::double v11 = let final dynamic #t12 = self::topLevelDouble in let final dynamic #t13 = self::topLevelDouble = #t12.{core::double::+}(1) in #t12;
+}
+static method main() → dynamic {}
« no previous file with comments | « pkg/front_end/testcases/inference/infer_assign_to_static_upwards.dart.outline.expect ('k') | tests/co19/co19-kernel.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698