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

Side by Side Diff: pkg/fasta/test/classes.dart

Issue 2631613003: Add Fasta tests. (Closed)
Patch Set: Address review comments. Created 3 years, 11 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
« no previous file with comments | « pkg/fasta/test/casts.dart.outline.expect ('k') | pkg/fasta/test/classes.dart.direct.expect » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/fasta/test/casts.dart.outline.expect ('k') | pkg/fasta/test/classes.dart.direct.expect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698