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

Side by Side Diff: pkg/front_end/testcases/inference/infer_assign_to_property_upwards.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 Test1 extends core::Object { 5 class Test1 extends core::Object {
6 field core::int prop = null; 6 field core::int prop = null;
7 constructor •() → void 7 constructor •() → void
8 : super core::Object::•() 8 : super core::Object::•()
9 ; 9 ;
10 static method test(self::Test1 t) → void { 10 static method test(self::Test1 t) → void {
11 dynamic v1 = t.prop = self::getInt(); 11 dynamic v1 = t.prop = self::getInt();
12 dynamic v2 = t.prop = self::getNum(); 12 dynamic v2 = t.prop = self::getNum();
13 dynamic v4 = let final dynamic #t1 = t in let final dynamic #t2 = #t1.prop i n #t2.==(null) ?{dynamic} #t1.prop = self::getInt() : #t2; 13 dynamic v4 = let final dynamic #t1 = t in let final dynamic #t2 = #t1.prop i n #t2.==(null) ? #t1.prop = self::getInt() : #t2;
14 dynamic v5 = let final dynamic #t3 = t in let final dynamic #t4 = #t3.prop i n #t4.==(null) ?{dynamic} #t3.prop = self::getNum() : #t4; 14 dynamic v5 = let final dynamic #t3 = t in let final dynamic #t4 = #t3.prop i n #t4.==(null) ? #t3.prop = self::getNum() : #t4;
15 dynamic v7 = let final dynamic #t5 = t in #t5.prop = #t5.prop.+(self::getInt ()); 15 dynamic v7 = let final dynamic #t5 = t in #t5.prop = #t5.prop.+(self::getInt ());
16 dynamic v8 = let final dynamic #t6 = t in #t6.prop = #t6.prop.+(self::getNum ()); 16 dynamic v8 = let final dynamic #t6 = t in #t6.prop = #t6.prop.+(self::getNum ());
17 dynamic v10 = let final dynamic #t7 = t in #t7.prop = #t7.prop.+(1); 17 dynamic v10 = let final dynamic #t7 = t in #t7.prop = #t7.prop.+(1);
18 dynamic v11 = let final dynamic #t8 = t in let final dynamic #t9 = #t8.prop in let final dynamic #t10 = #t8.prop = #t9.+(1) in #t9; 18 dynamic v11 = let final dynamic #t8 = t in let final dynamic #t9 = #t8.prop in let final dynamic #t10 = #t8.prop = #t9.+(1) in #t9;
19 } 19 }
20 } 20 }
21 class Test2 extends core::Object { 21 class Test2 extends core::Object {
22 field core::num prop = null; 22 field core::num prop = null;
23 constructor •() → void 23 constructor •() → void
24 : super core::Object::•() 24 : super core::Object::•()
25 ; 25 ;
26 static method test(self::Test2 t) → void { 26 static method test(self::Test2 t) → void {
27 dynamic v1 = t.prop = self::getInt(); 27 dynamic v1 = t.prop = self::getInt();
28 dynamic v2 = t.prop = self::getNum(); 28 dynamic v2 = t.prop = self::getNum();
29 dynamic v3 = t.prop = self::getDouble(); 29 dynamic v3 = t.prop = self::getDouble();
30 dynamic v4 = let final dynamic #t11 = t in let final dynamic #t12 = #t11.pro p in #t12.==(null) ?{dynamic} #t11.prop = self::getInt() : #t12; 30 dynamic v4 = let final dynamic #t11 = t in let final dynamic #t12 = #t11.pro p in #t12.==(null) ? #t11.prop = self::getInt() : #t12;
31 dynamic v5 = let final dynamic #t13 = t in let final dynamic #t14 = #t13.pro p in #t14.==(null) ?{dynamic} #t13.prop = self::getNum() : #t14; 31 dynamic v5 = let final dynamic #t13 = t in let final dynamic #t14 = #t13.pro p in #t14.==(null) ? #t13.prop = self::getNum() : #t14;
32 dynamic v6 = let final dynamic #t15 = t in let final dynamic #t16 = #t15.pro p in #t16.==(null) ?{dynamic} #t15.prop = self::getDouble() : #t16; 32 dynamic v6 = let final dynamic #t15 = t in let final dynamic #t16 = #t15.pro p in #t16.==(null) ? #t15.prop = self::getDouble() : #t16;
33 dynamic v7 = let final dynamic #t17 = t in #t17.prop = #t17.prop.+(self::get Int()); 33 dynamic v7 = let final dynamic #t17 = t in #t17.prop = #t17.prop.+(self::get Int());
34 dynamic v8 = let final dynamic #t18 = t in #t18.prop = #t18.prop.+(self::get Num()); 34 dynamic v8 = let final dynamic #t18 = t in #t18.prop = #t18.prop.+(self::get Num());
35 dynamic v9 = let final dynamic #t19 = t in #t19.prop = #t19.prop.+(self::get Double()); 35 dynamic v9 = let final dynamic #t19 = t in #t19.prop = #t19.prop.+(self::get Double());
36 dynamic v10 = let final dynamic #t20 = t in #t20.prop = #t20.prop.+(1); 36 dynamic v10 = let final dynamic #t20 = t in #t20.prop = #t20.prop.+(1);
37 dynamic v11 = let final dynamic #t21 = t in let final dynamic #t22 = #t21.pr op in let final dynamic #t23 = #t21.prop = #t22.+(1) in #t22; 37 dynamic v11 = let final dynamic #t21 = t in let final dynamic #t22 = #t21.pr op in let final dynamic #t23 = #t21.prop = #t22.+(1) in #t22;
38 } 38 }
39 } 39 }
40 class Test3 extends core::Object { 40 class Test3 extends core::Object {
41 field core::double prop = null; 41 field core::double prop = null;
42 constructor •() → void 42 constructor •() → void
43 : super core::Object::•() 43 : super core::Object::•()
44 ; 44 ;
45 static method test3(self::Test3 t) → void { 45 static method test3(self::Test3 t) → void {
46 dynamic v2 = t.prop = self::getNum(); 46 dynamic v2 = t.prop = self::getNum();
47 dynamic v3 = t.prop = self::getDouble(); 47 dynamic v3 = t.prop = self::getDouble();
48 dynamic v5 = let final dynamic #t24 = t in let final dynamic #t25 = #t24.pro p in #t25.==(null) ?{dynamic} #t24.prop = self::getNum() : #t25; 48 dynamic v5 = let final dynamic #t24 = t in let final dynamic #t25 = #t24.pro p in #t25.==(null) ? #t24.prop = self::getNum() : #t25;
49 dynamic v6 = let final dynamic #t26 = t in let final dynamic #t27 = #t26.pro p in #t27.==(null) ?{dynamic} #t26.prop = self::getDouble() : #t27; 49 dynamic v6 = let final dynamic #t26 = t in let final dynamic #t27 = #t26.pro p in #t27.==(null) ? #t26.prop = self::getDouble() : #t27;
50 dynamic v7 = let final dynamic #t28 = t in #t28.prop = #t28.prop.+(self::get Int()); 50 dynamic v7 = let final dynamic #t28 = t in #t28.prop = #t28.prop.+(self::get Int());
51 dynamic v8 = let final dynamic #t29 = t in #t29.prop = #t29.prop.+(self::get Num()); 51 dynamic v8 = let final dynamic #t29 = t in #t29.prop = #t29.prop.+(self::get Num());
52 dynamic v9 = let final dynamic #t30 = t in #t30.prop = #t30.prop.+(self::get Double()); 52 dynamic v9 = let final dynamic #t30 = t in #t30.prop = #t30.prop.+(self::get Double());
53 dynamic v10 = let final dynamic #t31 = t in #t31.prop = #t31.prop.+(1); 53 dynamic v10 = let final dynamic #t31 = t in #t31.prop = #t31.prop.+(1);
54 dynamic v11 = let final dynamic #t32 = t in let final dynamic #t33 = #t32.pr op in let final dynamic #t34 = #t32.prop = #t33.+(1) in #t33; 54 dynamic v11 = let final dynamic #t32 = t in let final dynamic #t33 = #t32.pr op in let final dynamic #t34 = #t32.prop = #t33.+(1) in #t33;
55 } 55 }
56 } 56 }
57 static method getInt() → core::int 57 static method getInt() → core::int
58 return 0; 58 return 0;
59 static method getNum() → core::num 59 static method getNum() → core::num
60 return 0; 60 return 0;
61 static method getDouble() → core::double 61 static method getDouble() → core::double
62 return 0.0; 62 return 0.0;
63 static method main() → dynamic {} 63 static method main() → dynamic {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698