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

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

Powered by Google App Engine
This is Rietveld 408576698