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

Side by Side Diff: pkg/front_end/testcases/inference/infer_assign_to_index_this.dart.strong.expect

Issue 2938443003: Add type inference for assignments to `this[...]` (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 this.{self::Test::[]=}(self::f<dynamic>(), self::f<self::B>());
42 let final dynamic #t1 = self::f<dynamic>() in this.{self::Test::[]}(#t1).{co re::Object::==}(null) ? let final dynamic #t2 = self::f<self::B>() in let final dynamic #t3 = this.{self::Test::[]=}(#t1, #t2) in #t2 : null;
43 let final dynamic #t4 = self::f<dynamic>() in this.{self::Test::[]=}(#t4, th is.{self::Test::[]}(#t4).{self::B::+}(self::f<dynamic>()));
44 let final dynamic #t5 = self::f<dynamic>() in this.{self::Test::[]=}(#t5, th is.{self::Test::[]}(#t5).{self::B::*}(self::f<dynamic>()));
45 let final dynamic #t6 = self::f<dynamic>() in this.{self::Test::[]=}(#t6, th is.{self::Test::[]}(#t6).{self::B::&}(self::f<dynamic>()));
46 let final dynamic #t7 = self::f<dynamic>() in let final dynamic #t8 = this.{ self::Test::[]}(#t7).{self::B::-}(1) in let final dynamic #t9 = this.{self::Test ::[]=}(#t7, #t8) in #t8;
47 let final dynamic #t10 = self::f<dynamic>() in this.{self::Test::[]=}(#t10, this.{self::Test::[]}(#t10).{self::B::-}(1));
48 self::B v1 = let final dynamic #t11 = self::f<dynamic>() in let final dynami c #t12 = self::f<self::B>() in let final dynamic #t13 = this.{self::Test::[]=}(# t11, #t12) in #t12;
49 self::B v2 = let final dynamic #t14 = self::f<dynamic>() in let final dynami c #t15 = this.{self::Test::[]}(#t14) in #t15.{core::Object::==}(null) ? let fina l dynamic #t16 = self::f<self::B>() in let final dynamic #t17 = this.{self::Test ::[]=}(#t14, #t16) in #t16 : #t15;
50 self::A v3 = let final dynamic #t18 = self::f<dynamic>() in let final dynami c #t19 = this.{self::Test::[]}(#t18).{self::B::+}(self::f<dynamic>()) in let fin al dynamic #t20 = this.{self::Test::[]=}(#t18, #t19) in #t19;
51 self::B v4 = let final dynamic #t21 = self::f<dynamic>() in let final dynami c #t22 = this.{self::Test::[]}(#t21).{self::B::*}(self::f<dynamic>()) in let fin al dynamic #t23 = this.{self::Test::[]=}(#t21, #t22) in #t22;
52 self::C v5 = let final dynamic #t24 = self::f<dynamic>() in let final dynami c #t25 = this.{self::Test::[]}(#t24).{self::B::&}(self::f<dynamic>()) in let fin al dynamic #t26 = this.{self::Test::[]=}(#t24, #t25) in #t25;
53 self::B v6 = let final dynamic #t27 = self::f<dynamic>() in let final dynami c #t28 = this.{self::Test::[]}(#t27).{self::B::-}(1) in let final dynamic #t29 = this.{self::Test::[]=}(#t27, #t28) in #t28;
54 self::B v7 = let final dynamic #t30 = self::f<dynamic>() in let final dynami c #t31 = this.{self::Test::[]}(#t30) in let final dynamic #t32 = this.{self::Tes t::[]=}(#t30, #t31.{self::B::-}(1)) in #t31;
55 }
56 }
57 static method f<T extends core::Object>() → self::f::T
58 return null;
59 static method main() → dynamic {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698