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

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

Issue 2941813002: Fix fasta testcase to avoid a super call to an abstract method. (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
« no previous file with comments | « pkg/front_end/testcases/inference/infer_assign_to_index_super_upwards.dart.outline.expect ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 abstract class Base<T extends core::Object, U extends core::Object> extends core ::Object { 5 abstract class Base<T extends core::Object, U extends core::Object> extends core ::Object {
6 constructor •() → void 6 constructor •() → void
7 : super core::Object::•() 7 : super core::Object::•()
8 ; 8 ;
9 abstract operator [](core::String s) → self::Base::T; 9 operator [](core::String s) → self::Base::T
10 abstract operator []=(core::String s, self::Base::U v) → void; 10 return this.{self::Base::getValue}(s);
11 operator []=(core::String s, self::Base::U v) → void
12 return this.{self::Base::setValue}(s, v);
13 abstract method getValue(core::String s) → self::Base::T;
14 abstract method setValue(core::String s, self::Base::U v) → void;
11 } 15 }
12 abstract class Test1 extends self::Base<core::int, core::int> { 16 abstract class Test1 extends self::Base<core::int, core::int> {
13 constructor •() → void 17 constructor •() → void
14 : super self::Base::•() 18 : super self::Base::•()
15 ; 19 ;
16 method test() → void { 20 method test() → void {
17 core::int v1 = let final dynamic #t1 = "x" in let final dynamic #t2 = self:: getInt() in let final dynamic #t3 = super.{self::Base::[]=}(#t1, #t2) in #t2; 21 core::int v1 = let final dynamic #t1 = "x" in let final dynamic #t2 = self:: getInt() in let final dynamic #t3 = super.{self::Base::[]=}(#t1, #t2) in #t2;
18 core::num v2 = let final dynamic #t4 = "x" in let final dynamic #t5 = self:: getNum() in let final dynamic #t6 = super.{self::Base::[]=}(#t4, #t5) in #t5; 22 core::num v2 = let final dynamic #t4 = "x" in let final dynamic #t5 = self:: getNum() in let final dynamic #t6 = super.{self::Base::[]=}(#t4, #t5) in #t5;
19 core::int v4 = let final dynamic #t7 = "x" in let final dynamic #t8 = super. {self::Base::[]}(#t7) in #t8.{core::num::==}(null) ? let final dynamic #t9 = sel f::getInt() in let final dynamic #t10 = super.{self::Base::[]=}(#t7, #t9) in #t9 : #t8; 23 core::int v4 = let final dynamic #t7 = "x" in let final dynamic #t8 = super. {self::Base::[]}(#t7) in #t8.{core::num::==}(null) ? let final dynamic #t9 = sel f::getInt() in let final dynamic #t10 = super.{self::Base::[]=}(#t7, #t9) in #t9 : #t8;
20 core::num v5 = let final dynamic #t11 = "x" in let final dynamic #t12 = supe r.{self::Base::[]}(#t11) in #t12.{core::num::==}(null) ? let final dynamic #t13 = self::getNum() in let final dynamic #t14 = super.{self::Base::[]=}(#t11, #t13) in #t13 : #t12; 24 core::num v5 = let final dynamic #t11 = "x" in let final dynamic #t12 = supe r.{self::Base::[]}(#t11) in #t12.{core::num::==}(null) ? let final dynamic #t13 = self::getNum() in let final dynamic #t14 = super.{self::Base::[]=}(#t11, #t13) in #t13 : #t12;
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 core::double v11 = let final dynamic #t271 = "x" in let final dynamic #t272 = super.{self::Base::[]}(#t271) in let final dynamic #t273 = super.{self::Base:: []=}(#t271, #t272.{core::double::+}(1)) in #t272; 160 core::double v11 = let final dynamic #t271 = "x" in let final dynamic #t272 = super.{self::Base::[]}(#t271) in let final dynamic #t273 = super.{self::Base:: []=}(#t271, #t272.{core::double::+}(1)) in #t272;
157 } 161 }
158 } 162 }
159 static method getInt() → core::int 163 static method getInt() → core::int
160 return 0; 164 return 0;
161 static method getNum() → core::num 165 static method getNum() → core::num
162 return 0; 166 return 0;
163 static method getDouble() → core::double 167 static method getDouble() → core::double
164 return 0.0; 168 return 0.0;
165 static method main() → dynamic {} 169 static method main() → dynamic {}
OLDNEW
« no previous file with comments | « pkg/front_end/testcases/inference/infer_assign_to_index_super_upwards.dart.outline.expect ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698