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

Side by Side Diff: pkg/front_end/testcases/prefer_baseclass.dart.outline.expect

Issue 2825063002: Move kernel baseline tests to front_end. (Closed)
Patch Set: Created 3 years, 8 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; 1 library;
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 class A extends core::Object { 5 class A extends core::Object {
6 constructor •() → void 6 constructor •() → void
7 : super core::Object::•()
8 ; 7 ;
9 } 8 }
10 class B extends core::Object { 9 class B extends core::Object {
11 constructor •() → void 10 constructor •() → void
12 : super core::Object::•()
13 ; 11 ;
14 } 12 }
15 class AB1 extends self::A implements self::B { 13 class AB1 extends self::A implements self::B {
16 constructor •() → void 14 constructor •() → void
17 : super self::A::•()
18 ; 15 ;
19 } 16 }
20 class AB2 extends self::A implements self::B { 17 class AB2 extends self::A implements self::B {
21 constructor •() → void 18 constructor •() → void
22 : super self::A::•()
23 ; 19 ;
24 } 20 }
25 class BA1 extends self::B implements self::A { 21 class BA1 extends self::B implements self::A {
26 constructor •() → void 22 constructor •() → void
27 : super self::B::•()
28 ; 23 ;
29 } 24 }
30 class BA2 extends self::B implements self::A { 25 class BA2 extends self::B implements self::A {
31 constructor •() → void 26 constructor •() → void
32 : super self::B::•()
33 ; 27 ;
34 } 28 }
35 static method takeSubclassOfA(dynamic obj) → dynamic {} 29 static method takeSubclassOfA(dynamic obj) → dynamic
36 static method takeSubclassOfB(dynamic obj) → dynamic {} 30 ;
37 static method main() → dynamic { 31 static method takeSubclassOfB(dynamic obj) → dynamic
38 self::takeSubclassOfA(new self::AB1::•()); 32 ;
39 self::takeSubclassOfA(new self::AB2::•()); 33 static method main() → dynamic
40 self::takeSubclassOfB(new self::BA1::•()); 34 ;
41 self::takeSubclassOfB(new self::BA2::•());
42 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698