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

Side by Side Diff: pkg/front_end/testcases/inference/infer_assign_to_local_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 static method getInt() → core::int 5 static method getInt() → core::int
6 return 0; 6 return 0;
7 static method getNum() → core::num 7 static method getNum() → core::num
8 return 0; 8 return 0;
9 static method getDouble() → core::double 9 static method getDouble() → core::double
10 return 0.0; 10 return 0.0;
11 static method test1(core::int t) → void { 11 static method test1(core::int t) → void {
12 dynamic v1 = t = self::getInt(); 12 dynamic v1 = t = self::getInt();
13 dynamic v2 = t = self::getNum(); 13 dynamic v2 = t = self::getNum();
14 dynamic v4 = let final dynamic #t1 = t in #t1.==(null) ?{dynamic} t = self::ge tInt() : #t1; 14 dynamic v4 = let final dynamic #t1 = t in #t1.==(null) ? t = self::getInt() : #t1;
15 dynamic v5 = let final dynamic #t2 = t in #t2.==(null) ?{dynamic} t = self::ge tNum() : #t2; 15 dynamic v5 = let final dynamic #t2 = t in #t2.==(null) ? t = self::getNum() : #t2;
16 dynamic v7 = t = t.+(self::getInt()); 16 dynamic v7 = t = t.+(self::getInt());
17 dynamic v8 = t = t.+(self::getNum()); 17 dynamic v8 = t = t.+(self::getNum());
18 dynamic v10 = t = t.+(1); 18 dynamic v10 = t = t.+(1);
19 dynamic v11 = let final dynamic #t3 = t in let final dynamic #t4 = t = #t3.+(1 ) in #t3; 19 dynamic v11 = let final dynamic #t3 = t in let final dynamic #t4 = t = #t3.+(1 ) in #t3;
20 } 20 }
21 static method test2(core::num t) → void { 21 static method test2(core::num t) → void {
22 dynamic v1 = t = self::getInt(); 22 dynamic v1 = t = self::getInt();
23 dynamic v2 = t = self::getNum(); 23 dynamic v2 = t = self::getNum();
24 dynamic v3 = t = self::getDouble(); 24 dynamic v3 = t = self::getDouble();
25 dynamic v4 = let final dynamic #t5 = t in #t5.==(null) ?{dynamic} t = self::ge tInt() : #t5; 25 dynamic v4 = let final dynamic #t5 = t in #t5.==(null) ? t = self::getInt() : #t5;
26 dynamic v5 = let final dynamic #t6 = t in #t6.==(null) ?{dynamic} t = self::ge tNum() : #t6; 26 dynamic v5 = let final dynamic #t6 = t in #t6.==(null) ? t = self::getNum() : #t6;
27 dynamic v6 = let final dynamic #t7 = t in #t7.==(null) ?{dynamic} t = self::ge tDouble() : #t7; 27 dynamic v6 = let final dynamic #t7 = t in #t7.==(null) ? t = self::getDouble() : #t7;
28 dynamic v7 = t = t.+(self::getInt()); 28 dynamic v7 = t = t.+(self::getInt());
29 dynamic v8 = t = t.+(self::getNum()); 29 dynamic v8 = t = t.+(self::getNum());
30 dynamic v9 = t = t.+(self::getDouble()); 30 dynamic v9 = t = t.+(self::getDouble());
31 dynamic v10 = t = t.+(1); 31 dynamic v10 = t = t.+(1);
32 dynamic v11 = let final dynamic #t8 = t in let final dynamic #t9 = t = #t8.+(1 ) in #t8; 32 dynamic v11 = let final dynamic #t8 = t in let final dynamic #t9 = t = #t8.+(1 ) in #t8;
33 } 33 }
34 static method test3(core::double t) → void { 34 static method test3(core::double t) → void {
35 dynamic v2 = t = self::getNum(); 35 dynamic v2 = t = self::getNum();
36 dynamic v3 = t = self::getDouble(); 36 dynamic v3 = t = self::getDouble();
37 dynamic v5 = let final dynamic #t10 = t in #t10.==(null) ?{dynamic} t = self:: getNum() : #t10; 37 dynamic v5 = let final dynamic #t10 = t in #t10.==(null) ? t = self::getNum() : #t10;
38 dynamic v6 = let final dynamic #t11 = t in #t11.==(null) ?{dynamic} t = self:: getDouble() : #t11; 38 dynamic v6 = let final dynamic #t11 = t in #t11.==(null) ? t = self::getDouble () : #t11;
39 dynamic v7 = t = t.+(self::getInt()); 39 dynamic v7 = t = t.+(self::getInt());
40 dynamic v8 = t = t.+(self::getNum()); 40 dynamic v8 = t = t.+(self::getNum());
41 dynamic v9 = t = t.+(self::getDouble()); 41 dynamic v9 = t = t.+(self::getDouble());
42 dynamic v10 = t = t.+(1); 42 dynamic v10 = t = t.+(1);
43 dynamic v11 = let final dynamic #t12 = t in let final dynamic #t13 = t = #t12. +(1) in #t12; 43 dynamic v11 = let final dynamic #t12 = t in let final dynamic #t13 = t = #t12. +(1) in #t12;
44 } 44 }
45 static method main() → dynamic {} 45 static method main() → dynamic {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698