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

Side by Side Diff: pkg/front_end/testcases/inference/infer_assign_to_implicit_this_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 t = null; 6 field core::int t = null;
7 constructor •() → void 7 constructor •() → void
8 : super core::Object::•() 8 : super core::Object::•()
9 ; 9 ;
10 method test() → void { 10 method test() → void {
11 dynamic v1 = this.t = self::getInt(); 11 dynamic v1 = this.t = self::getInt();
12 dynamic v2 = this.t = self::getNum(); 12 dynamic v2 = this.t = self::getNum();
13 dynamic v4 = let final dynamic #t1 = this.t in #t1.==(null) ?{dynamic} this. t = self::getInt() : #t1; 13 dynamic v4 = let final dynamic #t1 = this.t in #t1.==(null) ? this.t = self: :getInt() : #t1;
14 dynamic v5 = let final dynamic #t2 = this.t in #t2.==(null) ?{dynamic} this. t = self::getNum() : #t2; 14 dynamic v5 = let final dynamic #t2 = this.t in #t2.==(null) ? this.t = self: :getNum() : #t2;
15 dynamic v7 = this.t = this.t.+(self::getInt()); 15 dynamic v7 = this.t = this.t.+(self::getInt());
16 dynamic v8 = this.t = this.t.+(self::getNum()); 16 dynamic v8 = this.t = this.t.+(self::getNum());
17 dynamic v10 = this.t = this.t.+(1); 17 dynamic v10 = this.t = this.t.+(1);
18 dynamic v11 = let final dynamic #t3 = this.t in let final dynamic #t4 = this .t = #t3.+(1) in #t3; 18 dynamic v11 = let final dynamic #t3 = this.t in let final dynamic #t4 = this .t = #t3.+(1) in #t3;
19 } 19 }
20 } 20 }
21 class Test2 extends core::Object { 21 class Test2 extends core::Object {
22 field core::num t = null; 22 field core::num t = null;
23 constructor •() → void 23 constructor •() → void
24 : super core::Object::•() 24 : super core::Object::•()
25 ; 25 ;
26 method test() → void { 26 method test() → void {
27 dynamic v1 = this.t = self::getInt(); 27 dynamic v1 = this.t = self::getInt();
28 dynamic v2 = this.t = self::getNum(); 28 dynamic v2 = this.t = self::getNum();
29 dynamic v3 = this.t = self::getDouble(); 29 dynamic v3 = this.t = self::getDouble();
30 dynamic v4 = let final dynamic #t5 = this.t in #t5.==(null) ?{dynamic} this. t = self::getInt() : #t5; 30 dynamic v4 = let final dynamic #t5 = this.t in #t5.==(null) ? this.t = self: :getInt() : #t5;
31 dynamic v5 = let final dynamic #t6 = this.t in #t6.==(null) ?{dynamic} this. t = self::getNum() : #t6; 31 dynamic v5 = let final dynamic #t6 = this.t in #t6.==(null) ? this.t = self: :getNum() : #t6;
32 dynamic v6 = let final dynamic #t7 = this.t in #t7.==(null) ?{dynamic} this. t = self::getDouble() : #t7; 32 dynamic v6 = let final dynamic #t7 = this.t in #t7.==(null) ? this.t = self: :getDouble() : #t7;
33 dynamic v7 = this.t = this.t.+(self::getInt()); 33 dynamic v7 = this.t = this.t.+(self::getInt());
34 dynamic v8 = this.t = this.t.+(self::getNum()); 34 dynamic v8 = this.t = this.t.+(self::getNum());
35 dynamic v9 = this.t = this.t.+(self::getDouble()); 35 dynamic v9 = this.t = this.t.+(self::getDouble());
36 dynamic v10 = this.t = this.t.+(1); 36 dynamic v10 = this.t = this.t.+(1);
37 dynamic v11 = let final dynamic #t8 = this.t in let final dynamic #t9 = this .t = #t8.+(1) in #t8; 37 dynamic v11 = let final dynamic #t8 = this.t in let final dynamic #t9 = this .t = #t8.+(1) in #t8;
38 } 38 }
39 } 39 }
40 class Test3 extends core::Object { 40 class Test3 extends core::Object {
41 field core::double t = null; 41 field core::double t = null;
42 constructor •() → void 42 constructor •() → void
43 : super core::Object::•() 43 : super core::Object::•()
44 ; 44 ;
45 method test3() → void { 45 method test3() → void {
46 dynamic v2 = this.t = self::getNum(); 46 dynamic v2 = this.t = self::getNum();
47 dynamic v3 = this.t = self::getDouble(); 47 dynamic v3 = this.t = self::getDouble();
48 dynamic v5 = let final dynamic #t10 = this.t in #t10.==(null) ?{dynamic} thi s.t = self::getNum() : #t10; 48 dynamic v5 = let final dynamic #t10 = this.t in #t10.==(null) ? this.t = sel f::getNum() : #t10;
49 dynamic v6 = let final dynamic #t11 = this.t in #t11.==(null) ?{dynamic} thi s.t = self::getDouble() : #t11; 49 dynamic v6 = let final dynamic #t11 = this.t in #t11.==(null) ? this.t = sel f::getDouble() : #t11;
50 dynamic v7 = this.t = this.t.+(self::getInt()); 50 dynamic v7 = this.t = this.t.+(self::getInt());
51 dynamic v8 = this.t = this.t.+(self::getNum()); 51 dynamic v8 = this.t = this.t.+(self::getNum());
52 dynamic v9 = this.t = this.t.+(self::getDouble()); 52 dynamic v9 = this.t = this.t.+(self::getDouble());
53 dynamic v10 = this.t = this.t.+(1); 53 dynamic v10 = this.t = this.t.+(1);
54 dynamic v11 = let final dynamic #t12 = this.t in let final dynamic #t13 = th is.t = #t12.+(1) in #t12; 54 dynamic v11 = let final dynamic #t12 = this.t in let final dynamic #t13 = th is.t = #t12.+(1) in #t12;
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