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

Side by Side Diff: pkg/front_end/test/fasta/classes.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
(Empty)
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 class A {
6 final int x;
7 final int y;
8 A(this.y) : x = 42;
9 method() {
10 print("A.method x: $x y: $y");
11 print(this);
12 print(this.runtimeType);
13 }
14 }
15
16 class B extends A {
17 B(x) : super(x);
18 method() {
19 print("B.method x: $x y: $y");
20 super.method();
21 }
22 }
23
24 main() {
25 A a = new A(87);
26 B b = new B(117);
27 a.method();
28 b.method();
29 }
OLDNEW
« no previous file with comments | « pkg/front_end/test/fasta/casts.dart.outline.expect ('k') | pkg/front_end/test/fasta/classes.dart.direct.expect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698