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

Side by Side Diff: pkg/front_end/testcases/inference/infer_assign_to_property_full.dart.strong.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 14 matching lines...) Expand all
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 t.{self::Test::member} = self::f<self::B>(); 34 t.{self::Test::member} = self::f<self::B>();
35 let final dynamic #t1 = t in #t1.{self::Test::member}.{core::Object::==}(nul l) ?{dynamic} #t1.{self::Test::member} = self::f<self::B>() : null; 35 let final dynamic #t1 = t in #t1.{self::Test::member}.{core::Object::==}(nul l) ? #t1.{self::Test::member} = self::f<self::B>() : null;
36 let final dynamic #t2 = t in #t2.{self::Test::member} = #t2.{self::Test::mem ber}.{self::B::+}(self::f<dynamic>()); 36 let final dynamic #t2 = t in #t2.{self::Test::member} = #t2.{self::Test::mem ber}.{self::B::+}(self::f<dynamic>());
37 let final dynamic #t3 = t in #t3.{self::Test::member} = #t3.{self::Test::mem ber}.{self::B::*}(self::f<dynamic>()); 37 let final dynamic #t3 = t in #t3.{self::Test::member} = #t3.{self::Test::mem ber}.{self::B::*}(self::f<dynamic>());
38 let final dynamic #t4 = t in #t4.{self::Test::member} = #t4.{self::Test::mem ber}.{self::B::&}(self::f<dynamic>()); 38 let final dynamic #t4 = t in #t4.{self::Test::member} = #t4.{self::Test::mem ber}.{self::B::&}(self::f<dynamic>());
39 let final dynamic #t5 = t in #t5.{self::Test::member} = #t5.{self::Test::mem ber}.{self::B::-}(1); 39 let final dynamic #t5 = t in #t5.{self::Test::member} = #t5.{self::Test::mem ber}.{self::B::-}(1);
40 let final dynamic #t6 = t in #t6.{self::Test::member} = #t6.{self::Test::mem ber}.{self::B::-}(1); 40 let final dynamic #t6 = t in #t6.{self::Test::member} = #t6.{self::Test::mem ber}.{self::B::-}(1);
41 self::B v1 = t.{self::Test::member} = self::f<self::B>(); 41 self::B v1 = t.{self::Test::member} = self::f<self::B>();
42 self::B v2 = let final dynamic #t7 = t in let final dynamic #t8 = #t7.{self: :Test::member} in #t8.{core::Object::==}(null) ?{dynamic} #t7.{self::Test::membe r} = self::f<self::B>() : #t8; 42 self::B v2 = let final dynamic #t7 = t in let final dynamic #t8 = #t7.{self: :Test::member} in #t8.{core::Object::==}(null) ? #t7.{self::Test::member} = self ::f<self::B>() : #t8;
43 self::A v3 = let final dynamic #t9 = t in #t9.{self::Test::member} = #t9.{se lf::Test::member}.{self::B::+}(self::f<dynamic>()); 43 self::A v3 = let final dynamic #t9 = t in #t9.{self::Test::member} = #t9.{se lf::Test::member}.{self::B::+}(self::f<dynamic>());
44 self::B v4 = let final dynamic #t10 = t in #t10.{self::Test::member} = #t10. {self::Test::member}.{self::B::*}(self::f<dynamic>()); 44 self::B v4 = let final dynamic #t10 = t in #t10.{self::Test::member} = #t10. {self::Test::member}.{self::B::*}(self::f<dynamic>());
45 self::C v5 = let final dynamic #t11 = t in #t11.{self::Test::member} = #t11. {self::Test::member}.{self::B::&}(self::f<dynamic>()); 45 self::C v5 = let final dynamic #t11 = t in #t11.{self::Test::member} = #t11. {self::Test::member}.{self::B::&}(self::f<dynamic>());
46 self::B v6 = let final dynamic #t12 = t in #t12.{self::Test::member} = #t12. {self::Test::member}.{self::B::-}(1); 46 self::B v6 = let final dynamic #t12 = t in #t12.{self::Test::member} = #t12. {self::Test::member}.{self::B::-}(1);
47 self::B v7 = let final dynamic #t13 = t in let final dynamic #t14 = #t13.{se lf::Test::member} in let final dynamic #t15 = #t13.{self::Test::member} = #t14.{ self::B::-}(1) in #t14; 47 self::B v7 = let final dynamic #t13 = t in let final dynamic #t14 = #t13.{se lf::Test::member} in let final dynamic #t15 = #t13.{self::Test::member} = #t14.{ self::B::-}(1) in #t14;
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