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

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

Issue 2953503002: Only set types of conditional expressions in strong mode. (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
index ff849014ed32221a7a81322eccecc96b9997d24c..84f13c0de8528e81bb71d263810dc3ab1c04135c 100644
--- 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
@@ -14,8 +14,8 @@ static method getDouble() → core::double
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) ?{dynamic} self::topLevelInt = self::getInt() : #t1;
- core::num v5 = let final dynamic #t2 = self::topLevelInt in #t2.{core::num::==}(null) ?{dynamic} self::topLevelInt = self::getNum() : #t2;
+ 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);
@@ -25,9 +25,9 @@ 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) ?{dynamic} self::topLevelNum = self::getInt() : #t5;
- core::num v5 = let final dynamic #t6 = self::topLevelNum in #t6.{core::num::==}(null) ?{dynamic} self::topLevelNum = self::getNum() : #t6;
- core::num v6 = let final dynamic #t7 = self::topLevelNum in #t7.{core::num::==}(null) ?{dynamic} self::topLevelNum = self::getDouble() : #t7;
+ 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());
@@ -37,8 +37,8 @@ static method test2() → void {
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) ?{dynamic} self::topLevelDouble = self::getNum() : #t10;
- core::double v6 = let final dynamic #t11 = self::topLevelDouble in #t11.{core::num::==}(null) ?{dynamic} self::topLevelDouble = self::getDouble() : #t11;
+ 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());

Powered by Google App Engine
This is Rietveld 408576698