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

Side by Side Diff: pkg/front_end/testcases/inference/infer_assign_to_index_full.dart.direct.expect

Issue 2926763003: Add type inference for complex assignments whose LHS is an index expression. (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
(Empty)
1 library test;
2 import self as self;
3 import "dart:core" as core;
4
5 class Index extends core::Object {
6 constructor •() → void
7 : super core::Object::•()
8 ;
9 }
10 class A extends core::Object {
11 constructor •() → void
12 : super core::Object::•()
13 ;
14 }
15 class B extends self::A {
16 constructor •() → void
17 : super self::A::•()
18 ;
19 operator +(self::C v) → self::A
20 return null;
21 operator -(core::int i) → self::B
22 return null;
23 operator *(self::B v) → self::B
24 return null;
25 operator &(self::A v) → self::C
26 return null;
27 }
28 class C extends self::B {
29 constructor •() → void
30 : super self::B::•()
31 ;
32 }
33 class Test extends core::Object {
34 constructor •() → void
35 : super core::Object::•()
36 ;
37 operator [](self::Index i) → self::B
38 return null;
39 operator []=(self::Index i, self::B v) → void {}
40 method test() → void {
41 self::Test t = self::f();
42 t.[]=(self::f(), self::f());
43 let final self::Test #t1 = t in let final dynamic #t2 = self::f() in #t1.[]( #t2).==(null) ? let final dynamic #t3 = self::f() in let final dynamic #t4 = #t1 .[]=(#t2, #t3) in #t3 : null;
44 let final self::Test #t5 = t in let final dynamic #t6 = self::f() in #t5.[]= (#t6, #t5.[](#t6).+(self::f()));
45 let final self::Test #t7 = t in let final dynamic #t8 = self::f() in #t7.[]= (#t8, #t7.[](#t8).*(self::f()));
46 let final self::Test #t9 = t in let final dynamic #t10 = self::f() in #t9.[] =(#t10, #t9.[](#t10).&(self::f()));
47 let final self::Test #t11 = t in let final dynamic #t12 = self::f() in let f inal dynamic #t13 = #t11.[](#t12).-(1) in let final dynamic #t14 = #t11.[]=(#t12 , #t13) in #t13;
48 let final self::Test #t15 = t in let final dynamic #t16 = self::f() in #t15. []=(#t16, #t15.[](#t16).-(1));
49 dynamic v1 = let final self::Test #t17 = t in let final dynamic #t18 = self: :f() in let final dynamic #t19 = self::f() in let final dynamic #t20 = #t17.[]=( #t18, #t19) in #t19;
50 dynamic v2 = let final self::Test #t21 = t in let final dynamic #t22 = self: :f() in let final dynamic #t23 = #t21.[](#t22) in #t23.==(null) ? let final dyna mic #t24 = self::f() in let final dynamic #t25 = #t21.[]=(#t22, #t24) in #t24 : #t23;
51 dynamic v3 = let final self::Test #t26 = t in let final dynamic #t27 = self: :f() in let final dynamic #t28 = #t26.[](#t27).+(self::f()) in let final dynamic #t29 = #t26.[]=(#t27, #t28) in #t28;
52 dynamic v4 = let final self::Test #t30 = t in let final dynamic #t31 = self: :f() in let final dynamic #t32 = #t30.[](#t31).*(self::f()) in let final dynamic #t33 = #t30.[]=(#t31, #t32) in #t32;
53 dynamic v5 = let final self::Test #t34 = t in let final dynamic #t35 = self: :f() in let final dynamic #t36 = #t34.[](#t35).&(self::f()) in let final dynamic #t37 = #t34.[]=(#t35, #t36) in #t36;
54 dynamic v6 = let final self::Test #t38 = t in let final dynamic #t39 = self: :f() in let final dynamic #t40 = #t38.[](#t39).-(1) in let final dynamic #t41 = #t38.[]=(#t39, #t40) in #t40;
55 dynamic v7 = let final self::Test #t42 = t in let final dynamic #t43 = self: :f() in let final dynamic #t44 = #t42.[](#t43) in let final dynamic #t45 = #t42. []=(#t43, #t44.-(1)) in #t44;
56 }
57 }
58 static method f() → dynamic
59 return null;
60 static method main() → dynamic {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698