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

Side by Side Diff: pkg/front_end/testcases/inference/infer_assign_to_property_null_aware.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 A extends core::Object { 5 class A extends core::Object {
6 constructor •() → void 6 constructor •() → void
7 : super core::Object::•() 7 : super core::Object::•()
8 ; 8 ;
9 } 9 }
10 class B extends self::A { 10 class B extends self::A {
(...skipping 13 matching lines...) Expand all
24 constructor •() → void 24 constructor •() → void
25 : super self::B::•() 25 : super self::B::•()
26 ; 26 ;
27 } 27 }
28 class Test extends core::Object { 28 class Test extends core::Object {
29 field self::B member = null; 29 field self::B member = null;
30 constructor •() → void 30 constructor •() → void
31 : super core::Object::•() 31 : super core::Object::•()
32 ; 32 ;
33 static method test(self::Test t) → void { 33 static method test(self::Test t) → void {
34 let final dynamic #t1 = t in #t1.==(null) ?{dynamic} null : #t1.member = sel f::f<dynamic>(); 34 let final dynamic #t1 = t in #t1.==(null) ? null : #t1.member = self::f<dyna mic>();
35 let final dynamic #t2 = t in #t2.==(null) ?{dynamic} null : #t2.member.==(nu ll) ?{dynamic} #t2.member = self::f<dynamic>() : null; 35 let final dynamic #t2 = t in #t2.==(null) ? null : #t2.member.==(null) ? #t2 .member = self::f<dynamic>() : null;
36 let final dynamic #t3 = t in #t3.==(null) ?{dynamic} null : #t3.member = #t3 .member.+(self::f<dynamic>()); 36 let final dynamic #t3 = t in #t3.==(null) ? null : #t3.member = #t3.member.+ (self::f<dynamic>());
37 let final dynamic #t4 = t in #t4.==(null) ?{dynamic} null : #t4.member = #t4 .member.*(self::f<dynamic>()); 37 let final dynamic #t4 = t in #t4.==(null) ? null : #t4.member = #t4.member.* (self::f<dynamic>());
38 let final dynamic #t5 = t in #t5.==(null) ?{dynamic} null : #t5.member = #t5 .member.&(self::f<dynamic>()); 38 let final dynamic #t5 = t in #t5.==(null) ? null : #t5.member = #t5.member.& (self::f<dynamic>());
39 let final dynamic #t6 = t in #t6.==(null) ?{dynamic} null : #t6.member = #t6 .member.-(1); 39 let final dynamic #t6 = t in #t6.==(null) ? null : #t6.member = #t6.member.- (1);
40 let final dynamic #t7 = t in #t7.==(null) ?{dynamic} null : #t7.member = #t7 .member.-(1); 40 let final dynamic #t7 = t in #t7.==(null) ? null : #t7.member = #t7.member.- (1);
41 dynamic v1 = let final dynamic #t8 = t in #t8.==(null) ?{dynamic} null : #t8 .member = self::f<dynamic>(); 41 dynamic v1 = let final dynamic #t8 = t in #t8.==(null) ? null : #t8.member = self::f<dynamic>();
42 dynamic v2 = let final dynamic #t9 = t in #t9.==(null) ?{dynamic} null : let final dynamic #t10 = #t9.member in #t10.==(null) ?{dynamic} #t9.member = self:: f<dynamic>() : #t10; 42 dynamic v2 = let final dynamic #t9 = t in #t9.==(null) ? null : let final dy namic #t10 = #t9.member in #t10.==(null) ? #t9.member = self::f<dynamic>() : #t1 0;
43 dynamic v3 = let final dynamic #t11 = t in #t11.==(null) ?{dynamic} null : # t11.member = #t11.member.+(self::f<dynamic>()); 43 dynamic v3 = let final dynamic #t11 = t in #t11.==(null) ? null : #t11.membe r = #t11.member.+(self::f<dynamic>());
44 dynamic v4 = let final dynamic #t12 = t in #t12.==(null) ?{dynamic} null : # t12.member = #t12.member.*(self::f<dynamic>()); 44 dynamic v4 = let final dynamic #t12 = t in #t12.==(null) ? null : #t12.membe r = #t12.member.*(self::f<dynamic>());
45 dynamic v5 = let final dynamic #t13 = t in #t13.==(null) ?{dynamic} null : # t13.member = #t13.member.&(self::f<dynamic>()); 45 dynamic v5 = let final dynamic #t13 = t in #t13.==(null) ? null : #t13.membe r = #t13.member.&(self::f<dynamic>());
46 dynamic v6 = let final dynamic #t14 = t in #t14.==(null) ?{dynamic} null : # t14.member = #t14.member.-(1); 46 dynamic v6 = let final dynamic #t14 = t in #t14.==(null) ? null : #t14.membe r = #t14.member.-(1);
47 dynamic v7 = let final dynamic #t15 = t in #t15.==(null) ?{dynamic} null : l et final dynamic #t16 = #t15.member in let final dynamic #t17 = #t15.member = #t 16.-(1) in #t16; 47 dynamic v7 = let final dynamic #t15 = t in #t15.==(null) ? null : let final dynamic #t16 = #t15.member in let final dynamic #t17 = #t15.member = #t16.-(1) i n #t16;
48 } 48 }
49 } 49 }
50 static method f<T extends core::Object>() → self::f::T 50 static method f<T extends core::Object>() → self::f::T
51 return null; 51 return null;
52 static method main() → dynamic {} 52 static method main() → dynamic {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698