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

Side by Side Diff: pkg/front_end/testcases/inference/infer_assign_to_index_this.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 unified diff | Download patch
OLDNEW
1 library test; 1 library test;
2 import self as self; 2 import self as self;
3 import "dart:core" as core; 3 import "dart:core" as core;
4 4
5 class Index extends core::Object { 5 class Index extends core::Object {
6 constructor •() → void 6 constructor •() → void
7 : super core::Object::•() 7 : super core::Object::•()
8 ; 8 ;
9 } 9 }
10 class A extends core::Object { 10 class A extends core::Object {
(...skipping 21 matching lines...) Expand all
32 } 32 }
33 class Test extends core::Object { 33 class Test extends core::Object {
34 constructor •() → void 34 constructor •() → void
35 : super core::Object::•() 35 : super core::Object::•()
36 ; 36 ;
37 operator [](self::Index i) → self::B 37 operator [](self::Index i) → self::B
38 return null; 38 return null;
39 operator []=(self::Index i, self::B v) → void {} 39 operator []=(self::Index i, self::B v) → void {}
40 method test() → void { 40 method test() → void {
41 this.{self::Test::[]=}(self::f<dynamic>(), self::f<self::B>()); 41 this.{self::Test::[]=}(self::f<dynamic>(), self::f<self::B>());
42 let final dynamic #t1 = self::f<dynamic>() in this.{self::Test::[]}(#t1).{co re::Object::==}(null) ?{dynamic} let final dynamic #t2 = self::f<self::B>() in l et final dynamic #t3 = this.{self::Test::[]=}(#t1, #t2) in #t2 : null; 42 let final dynamic #t1 = self::f<dynamic>() in this.{self::Test::[]}(#t1).{co re::Object::==}(null) ? let final dynamic #t2 = self::f<self::B>() in let final dynamic #t3 = this.{self::Test::[]=}(#t1, #t2) in #t2 : null;
43 let final dynamic #t4 = self::f<dynamic>() in this.{self::Test::[]=}(#t4, th is.{self::Test::[]}(#t4).{self::B::+}(self::f<dynamic>())); 43 let final dynamic #t4 = self::f<dynamic>() in this.{self::Test::[]=}(#t4, th is.{self::Test::[]}(#t4).{self::B::+}(self::f<dynamic>()));
44 let final dynamic #t5 = self::f<dynamic>() in this.{self::Test::[]=}(#t5, th is.{self::Test::[]}(#t5).{self::B::*}(self::f<dynamic>())); 44 let final dynamic #t5 = self::f<dynamic>() in this.{self::Test::[]=}(#t5, th is.{self::Test::[]}(#t5).{self::B::*}(self::f<dynamic>()));
45 let final dynamic #t6 = self::f<dynamic>() in this.{self::Test::[]=}(#t6, th is.{self::Test::[]}(#t6).{self::B::&}(self::f<dynamic>())); 45 let final dynamic #t6 = self::f<dynamic>() in this.{self::Test::[]=}(#t6, th is.{self::Test::[]}(#t6).{self::B::&}(self::f<dynamic>()));
46 let final dynamic #t7 = self::f<dynamic>() in let final dynamic #t8 = this.{ self::Test::[]}(#t7).{self::B::-}(1) in let final dynamic #t9 = this.{self::Test ::[]=}(#t7, #t8) in #t8; 46 let final dynamic #t7 = self::f<dynamic>() in let final dynamic #t8 = this.{ self::Test::[]}(#t7).{self::B::-}(1) in let final dynamic #t9 = this.{self::Test ::[]=}(#t7, #t8) in #t8;
47 let final dynamic #t10 = self::f<dynamic>() in this.{self::Test::[]=}(#t10, this.{self::Test::[]}(#t10).{self::B::-}(1)); 47 let final dynamic #t10 = self::f<dynamic>() in this.{self::Test::[]=}(#t10, this.{self::Test::[]}(#t10).{self::B::-}(1));
48 self::B v1 = let final dynamic #t11 = self::f<dynamic>() in let final dynami c #t12 = self::f<self::B>() in let final dynamic #t13 = this.{self::Test::[]=}(# t11, #t12) in #t12; 48 self::B v1 = let final dynamic #t11 = self::f<dynamic>() in let final dynami c #t12 = self::f<self::B>() in let final dynamic #t13 = this.{self::Test::[]=}(# t11, #t12) in #t12;
49 self::B v2 = let final dynamic #t14 = self::f<dynamic>() in let final dynami c #t15 = this.{self::Test::[]}(#t14) in #t15.{core::Object::==}(null) ?{dynamic} let final dynamic #t16 = self::f<self::B>() in let final dynamic #t17 = this.{s elf::Test::[]=}(#t14, #t16) in #t16 : #t15; 49 self::B v2 = let final dynamic #t14 = self::f<dynamic>() in let final dynami c #t15 = this.{self::Test::[]}(#t14) in #t15.{core::Object::==}(null) ? let fina l dynamic #t16 = self::f<self::B>() in let final dynamic #t17 = this.{self::Test ::[]=}(#t14, #t16) in #t16 : #t15;
50 self::A v3 = let final dynamic #t18 = self::f<dynamic>() in let final dynami c #t19 = this.{self::Test::[]}(#t18).{self::B::+}(self::f<dynamic>()) in let fin al dynamic #t20 = this.{self::Test::[]=}(#t18, #t19) in #t19; 50 self::A v3 = let final dynamic #t18 = self::f<dynamic>() in let final dynami c #t19 = this.{self::Test::[]}(#t18).{self::B::+}(self::f<dynamic>()) in let fin al dynamic #t20 = this.{self::Test::[]=}(#t18, #t19) in #t19;
51 self::B v4 = let final dynamic #t21 = self::f<dynamic>() in let final dynami c #t22 = this.{self::Test::[]}(#t21).{self::B::*}(self::f<dynamic>()) in let fin al dynamic #t23 = this.{self::Test::[]=}(#t21, #t22) in #t22; 51 self::B v4 = let final dynamic #t21 = self::f<dynamic>() in let final dynami c #t22 = this.{self::Test::[]}(#t21).{self::B::*}(self::f<dynamic>()) in let fin al dynamic #t23 = this.{self::Test::[]=}(#t21, #t22) in #t22;
52 self::C v5 = let final dynamic #t24 = self::f<dynamic>() in let final dynami c #t25 = this.{self::Test::[]}(#t24).{self::B::&}(self::f<dynamic>()) in let fin al dynamic #t26 = this.{self::Test::[]=}(#t24, #t25) in #t25; 52 self::C v5 = let final dynamic #t24 = self::f<dynamic>() in let final dynami c #t25 = this.{self::Test::[]}(#t24).{self::B::&}(self::f<dynamic>()) in let fin al dynamic #t26 = this.{self::Test::[]=}(#t24, #t25) in #t25;
53 self::B v6 = let final dynamic #t27 = self::f<dynamic>() in let final dynami c #t28 = this.{self::Test::[]}(#t27).{self::B::-}(1) in let final dynamic #t29 = this.{self::Test::[]=}(#t27, #t28) in #t28; 53 self::B v6 = let final dynamic #t27 = self::f<dynamic>() in let final dynami c #t28 = this.{self::Test::[]}(#t27).{self::B::-}(1) in let final dynamic #t29 = this.{self::Test::[]=}(#t27, #t28) in #t28;
54 self::B v7 = let final dynamic #t30 = self::f<dynamic>() in let final dynami c #t31 = this.{self::Test::[]}(#t30) in let final dynamic #t32 = this.{self::Tes t::[]=}(#t30, #t31.{self::B::-}(1)) in #t31; 54 self::B v7 = let final dynamic #t30 = self::f<dynamic>() in let final dynami c #t31 = this.{self::Test::[]}(#t30) in let final dynamic #t32 = this.{self::Tes t::[]=}(#t30, #t31.{self::B::-}(1)) in #t31;
55 } 55 }
56 } 56 }
57 static method f<T extends core::Object>() → self::f::T 57 static method f<T extends core::Object>() → self::f::T
58 return null; 58 return null;
59 static method main() → dynamic {} 59 static method main() → dynamic {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698