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

Side by Side Diff: pkg/kernel/testcases/input/override.dart

Issue 2747113004: Run dartfmt on kernel package (Closed)
Patch Set: Created 3 years, 9 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 class Bar extends Foo {} 3 class Bar extends Foo {}
3 4
4 class Base { 5 class Base {
5 Foo method() { 6 Foo method() {
6 return new Foo(); 7 return new Foo();
7 } 8 }
8 } 9 }
9 10
10 class Sub extends Base { 11 class Sub extends Base {
11 Foo method() { 12 Foo method() {
12 return new Bar(); 13 return new Bar();
13 } 14 }
14 } 15 }
15 16
16 main(List<String> args) { 17 main(List<String> args) {
17 var object = args.length == 0 ? new Base() : new Sub(); 18 var object = args.length == 0 ? new Base() : new Sub();
18 var a = object.method(); 19 var a = object.method();
19 print(a); 20 print(a);
20 } 21 }
OLDNEW
« no previous file with comments | « pkg/kernel/testcases/input/optional.dart ('k') | pkg/kernel/testcases/input/prefer_baseclass.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698