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

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

Issue 2935783003: Add type inference for assignments to `super[...]` (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 Base 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 }
41 class Test extends self::Base {
42 constructor •() → void
43 : super self::Base::•()
44 ;
45 method test() → void {
46 this.{=self::Base::[]=}(self::f(), self::f());
47 let final dynamic #t1 = self::f() in this.{=self::Base::[]}(#t1).==(null) ? let final dynamic #t2 = self::f() in let final dynamic #t3 = this.{=self::Base:: []=}(#t1, #t2) in #t2 : null;
48 let final dynamic #t4 = self::f() in this.{=self::Base::[]=}(#t4, this.{=sel f::Base::[]}(#t4).+(self::f()));
49 let final dynamic #t5 = self::f() in this.{=self::Base::[]=}(#t5, this.{=sel f::Base::[]}(#t5).*(self::f()));
50 let final dynamic #t6 = self::f() in this.{=self::Base::[]=}(#t6, this.{=sel f::Base::[]}(#t6).&(self::f()));
51 let final dynamic #t7 = self::f() in let final dynamic #t8 = this.{=self::Ba se::[]}(#t7).-(1) in let final dynamic #t9 = this.{=self::Base::[]=}(#t7, #t8) i n #t8;
52 let final dynamic #t10 = self::f() in this.{=self::Base::[]=}(#t10, this.{=s elf::Base::[]}(#t10).-(1));
53 dynamic v1 = let final dynamic #t11 = self::f() in let final dynamic #t12 = self::f() in let final dynamic #t13 = this.{=self::Base::[]=}(#t11, #t12) in #t1 2;
54 dynamic v2 = let final dynamic #t14 = self::f() in let final dynamic #t15 = this.{=self::Base::[]}(#t14) in #t15.==(null) ? let final dynamic #t16 = self::f () in let final dynamic #t17 = this.{=self::Base::[]=}(#t14, #t16) in #t16 : #t1 5;
55 dynamic v3 = let final dynamic #t18 = self::f() in let final dynamic #t19 = this.{=self::Base::[]}(#t18).+(self::f()) in let final dynamic #t20 = this.{=sel f::Base::[]=}(#t18, #t19) in #t19;
56 dynamic v4 = let final dynamic #t21 = self::f() in let final dynamic #t22 = this.{=self::Base::[]}(#t21).*(self::f()) in let final dynamic #t23 = this.{=sel f::Base::[]=}(#t21, #t22) in #t22;
57 dynamic v5 = let final dynamic #t24 = self::f() in let final dynamic #t25 = this.{=self::Base::[]}(#t24).&(self::f()) in let final dynamic #t26 = this.{=sel f::Base::[]=}(#t24, #t25) in #t25;
58 dynamic v6 = let final dynamic #t27 = self::f() in let final dynamic #t28 = this.{=self::Base::[]}(#t27).-(1) in let final dynamic #t29 = this.{=self::Base: :[]=}(#t27, #t28) in #t28;
59 dynamic v7 = let final dynamic #t30 = self::f() in let final dynamic #t31 = this.{=self::Base::[]}(#t30) in let final dynamic #t32 = this.{=self::Base::[]=} (#t30, #t31.-(1)) in #t31;
60 }
61 }
62 static method f() → dynamic
63 return null;
64 static method main() → dynamic {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698