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

Side by Side Diff: pkg/front_end/testcases/inference/infer_assign_to_index_super_upwards.dart.direct.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
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.getValue(s);
11 operator []=(core::String s, self::Base::U v) → void
12 return this.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 dynamic v1 = let final dynamic #t1 = "x" in let final dynamic #t2 = self::ge tInt() in let final dynamic #t3 = super.[]=(#t1, #t2) in #t2; 21 dynamic v1 = let final dynamic #t1 = "x" in let final dynamic #t2 = self::ge tInt() in let final dynamic #t3 = super.[]=(#t1, #t2) in #t2;
18 dynamic v2 = let final dynamic #t4 = "x" in let final dynamic #t5 = self::ge tNum() in let final dynamic #t6 = super.[]=(#t4, #t5) in #t5; 22 dynamic v2 = let final dynamic #t4 = "x" in let final dynamic #t5 = self::ge tNum() in let final dynamic #t6 = super.[]=(#t4, #t5) in #t5;
19 dynamic v4 = let final dynamic #t7 = "x" in let final dynamic #t8 = super.[] (#t7) in #t8.==(null) ? let final dynamic #t9 = self::getInt() in let final dyna mic #t10 = super.[]=(#t7, #t9) in #t9 : #t8; 23 dynamic v4 = let final dynamic #t7 = "x" in let final dynamic #t8 = super.[] (#t7) in #t8.==(null) ? let final dynamic #t9 = self::getInt() in let final dyna mic #t10 = super.[]=(#t7, #t9) in #t9 : #t8;
20 dynamic v5 = let final dynamic #t11 = "x" in let final dynamic #t12 = super. [](#t11) in #t12.==(null) ? let final dynamic #t13 = self::getNum() in let final dynamic #t14 = super.[]=(#t11, #t13) in #t13 : #t12; 24 dynamic v5 = let final dynamic #t11 = "x" in let final dynamic #t12 = super. [](#t11) in #t12.==(null) ? let final dynamic #t13 = self::getNum() in let final dynamic #t14 = super.[]=(#t11, #t13) in #t13 : #t12;
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 dynamic v11 = let final dynamic #t271 = "x" in let final dynamic #t272 = sup er.[](#t271) in let final dynamic #t273 = super.[]=(#t271, #t272.+(1)) in #t272; 160 dynamic v11 = let final dynamic #t271 = "x" in let final dynamic #t272 = sup er.[](#t271) in let final dynamic #t273 = super.[]=(#t271, #t272.+(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

Powered by Google App Engine
This is Rietveld 408576698