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

Side by Side Diff: pkg/front_end/testcases/override.dart

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 class Foo {} 1 class Foo {}
2 2
3 class Bar extends Foo {} 3 class Bar extends Foo {}
4 4
5 class Base { 5 class Base {
6 Foo method() { 6 Foo method() {
7 return new Foo(); 7 return new Foo();
8 } 8 }
9 } 9 }
10 10
11 class Sub extends Base { 11 class Sub extends Base {
12 Foo method() { 12 Foo method() {
13 return new Bar(); 13 return new Bar();
14 } 14 }
15 } 15 }
16 16
17 main(List<String> args) { 17 main(List<String> args) {
18 var object = args.length == 0 ? new Base() : new Sub(); 18 var object = args.length == 0 ? new Base() : new Sub();
19 var a = object.method(); 19 var a = object.method();
20 print(a); 20 print(a);
21 } 21 }
OLDNEW
« no previous file with comments | « pkg/front_end/testcases/optional.dart.strong.expect ('k') | pkg/front_end/testcases/override.dart.direct.expect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698