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

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

Issue 2931363003: Add type inference for assignments to properties. (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 Test1 extends core::Object {
6 field core::int t = null;
7 constructor •() → void
8 : super core::Object::•()
9 ;
10 method test() → void {
11 dynamic v1 = this.t = self::getInt();
12 dynamic v2 = this.t = self::getNum();
13 dynamic v4 = let final dynamic #t1 = this.t in #t1.==(null) ? this.t = self: :getInt() : #t1;
14 dynamic v5 = let final dynamic #t2 = this.t in #t2.==(null) ? this.t = self: :getNum() : #t2;
15 dynamic v7 = this.t = this.t.+(self::getInt());
16 dynamic v8 = this.t = this.t.+(self::getNum());
17 dynamic v10 = this.t = this.t.+(1);
18 dynamic v11 = let final dynamic #t3 = this.t in let final dynamic #t4 = this .t = #t3.+(1) in #t3;
19 }
20 }
21 class Test2 extends core::Object {
22 field core::num t = null;
23 constructor •() → void
24 : super core::Object::•()
25 ;
26 method test() → void {
27 dynamic v1 = this.t = self::getInt();
28 dynamic v2 = this.t = self::getNum();
29 dynamic v3 = this.t = self::getDouble();
30 dynamic v4 = let final dynamic #t5 = this.t in #t5.==(null) ? this.t = self: :getInt() : #t5;
31 dynamic v5 = let final dynamic #t6 = this.t in #t6.==(null) ? this.t = self: :getNum() : #t6;
32 dynamic v6 = let final dynamic #t7 = this.t in #t7.==(null) ? this.t = self: :getDouble() : #t7;
33 dynamic v7 = this.t = this.t.+(self::getInt());
34 dynamic v8 = this.t = this.t.+(self::getNum());
35 dynamic v9 = this.t = this.t.+(self::getDouble());
36 dynamic v10 = this.t = this.t.+(1);
37 dynamic v11 = let final dynamic #t8 = this.t in let final dynamic #t9 = this .t = #t8.+(1) in #t8;
38 }
39 }
40 class Test3 extends core::Object {
41 field core::double t = null;
42 constructor •() → void
43 : super core::Object::•()
44 ;
45 method test3() → void {
46 dynamic v2 = this.t = self::getNum();
47 dynamic v3 = this.t = self::getDouble();
48 dynamic v5 = let final dynamic #t10 = this.t in #t10.==(null) ? this.t = sel f::getNum() : #t10;
49 dynamic v6 = let final dynamic #t11 = this.t in #t11.==(null) ? this.t = sel f::getDouble() : #t11;
50 dynamic v7 = this.t = this.t.+(self::getInt());
51 dynamic v8 = this.t = this.t.+(self::getNum());
52 dynamic v9 = this.t = this.t.+(self::getDouble());
53 dynamic v10 = this.t = this.t.+(1);
54 dynamic v11 = let final dynamic #t12 = this.t in let final dynamic #t13 = th is.t = #t12.+(1) in #t12;
55 }
56 }
57 static method getInt() → core::int
58 return 0;
59 static method getNum() → core::num
60 return 0;
61 static method getDouble() → core::double
62 return 0.0;
63 static method main() → dynamic {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698