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

Side by Side Diff: pkg/front_end/testcases/inference/infer_assign_to_index_this.dart.direct.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::f<dynamic>(), self::f<dynamic>()); 41 this.[]=(self::f<dynamic>(), self::f<dynamic>());
42 let final dynamic #t1 = self::f<dynamic>() in this.[](#t1).==(null) ?{dynami c} let final dynamic #t2 = self::f<dynamic>() in let final dynamic #t3 = this.[] =(#t1, #t2) in #t2 : null; 42 let final dynamic #t1 = self::f<dynamic>() in this.[](#t1).==(null) ? let fi nal dynamic #t2 = self::f<dynamic>() in let final dynamic #t3 = this.[]=(#t1, #t 2) in #t2 : null;
43 let final dynamic #t4 = self::f<dynamic>() in this.[]=(#t4, this.[](#t4).+(s elf::f<dynamic>())); 43 let final dynamic #t4 = self::f<dynamic>() in this.[]=(#t4, this.[](#t4).+(s elf::f<dynamic>()));
44 let final dynamic #t5 = self::f<dynamic>() in this.[]=(#t5, this.[](#t5).*(s elf::f<dynamic>())); 44 let final dynamic #t5 = self::f<dynamic>() in this.[]=(#t5, this.[](#t5).*(s elf::f<dynamic>()));
45 let final dynamic #t6 = self::f<dynamic>() in this.[]=(#t6, this.[](#t6).&(s elf::f<dynamic>())); 45 let final dynamic #t6 = self::f<dynamic>() in this.[]=(#t6, this.[](#t6).&(s elf::f<dynamic>()));
46 let final dynamic #t7 = self::f<dynamic>() in let final dynamic #t8 = this.[ ](#t7).-(1) in let final dynamic #t9 = this.[]=(#t7, #t8) in #t8; 46 let final dynamic #t7 = self::f<dynamic>() in let final dynamic #t8 = this.[ ](#t7).-(1) in let final dynamic #t9 = this.[]=(#t7, #t8) in #t8;
47 let final dynamic #t10 = self::f<dynamic>() in this.[]=(#t10, this.[](#t10). -(1)); 47 let final dynamic #t10 = self::f<dynamic>() in this.[]=(#t10, this.[](#t10). -(1));
48 dynamic v1 = let final dynamic #t11 = self::f<dynamic>() in let final dynami c #t12 = self::f<dynamic>() in let final dynamic #t13 = this.[]=(#t11, #t12) in #t12; 48 dynamic v1 = let final dynamic #t11 = self::f<dynamic>() in let final dynami c #t12 = self::f<dynamic>() in let final dynamic #t13 = this.[]=(#t11, #t12) in #t12;
49 dynamic v2 = let final dynamic #t14 = self::f<dynamic>() in let final dynami c #t15 = this.[](#t14) in #t15.==(null) ?{dynamic} let final dynamic #t16 = self ::f<dynamic>() in let final dynamic #t17 = this.[]=(#t14, #t16) in #t16 : #t15; 49 dynamic v2 = let final dynamic #t14 = self::f<dynamic>() in let final dynami c #t15 = this.[](#t14) in #t15.==(null) ? let final dynamic #t16 = self::f<dynam ic>() in let final dynamic #t17 = this.[]=(#t14, #t16) in #t16 : #t15;
50 dynamic v3 = let final dynamic #t18 = self::f<dynamic>() in let final dynami c #t19 = this.[](#t18).+(self::f<dynamic>()) in let final dynamic #t20 = this.[] =(#t18, #t19) in #t19; 50 dynamic v3 = let final dynamic #t18 = self::f<dynamic>() in let final dynami c #t19 = this.[](#t18).+(self::f<dynamic>()) in let final dynamic #t20 = this.[] =(#t18, #t19) in #t19;
51 dynamic v4 = let final dynamic #t21 = self::f<dynamic>() in let final dynami c #t22 = this.[](#t21).*(self::f<dynamic>()) in let final dynamic #t23 = this.[] =(#t21, #t22) in #t22; 51 dynamic v4 = let final dynamic #t21 = self::f<dynamic>() in let final dynami c #t22 = this.[](#t21).*(self::f<dynamic>()) in let final dynamic #t23 = this.[] =(#t21, #t22) in #t22;
52 dynamic v5 = let final dynamic #t24 = self::f<dynamic>() in let final dynami c #t25 = this.[](#t24).&(self::f<dynamic>()) in let final dynamic #t26 = this.[] =(#t24, #t25) in #t25; 52 dynamic v5 = let final dynamic #t24 = self::f<dynamic>() in let final dynami c #t25 = this.[](#t24).&(self::f<dynamic>()) in let final dynamic #t26 = this.[] =(#t24, #t25) in #t25;
53 dynamic v6 = let final dynamic #t27 = self::f<dynamic>() in let final dynami c #t28 = this.[](#t27).-(1) in let final dynamic #t29 = this.[]=(#t27, #t28) in #t28; 53 dynamic v6 = let final dynamic #t27 = self::f<dynamic>() in let final dynami c #t28 = this.[](#t27).-(1) in let final dynamic #t29 = this.[]=(#t27, #t28) in #t28;
54 dynamic v7 = let final dynamic #t30 = self::f<dynamic>() in let final dynami c #t31 = this.[](#t30) in let final dynamic #t32 = this.[]=(#t30, #t31.-(1)) in #t31; 54 dynamic v7 = let final dynamic #t30 = self::f<dynamic>() in let final dynami c #t31 = this.[](#t30) in let final dynamic #t32 = this.[]=(#t30, #t31.-(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