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

Side by Side Diff: tests/language/mixin_implements_test.dart

Issue 27300003: Change "typedef" to "class" in core library and related tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update some dart2js tests and unparser. Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « tests/language/mixin_implements2_test.dart ('k') | tests/language/mixin_is_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 6
7 abstract class I0 { 7 abstract class I0 {
8 foo(); 8 foo();
9 } 9 }
10 10
11 abstract class I1 { 11 abstract class I1 {
12 bar(); 12 bar();
13 } 13 }
14 14
15 abstract class I2 implements I0, I1 { 15 abstract class I2 implements I0, I1 {
16 } 16 }
17 17
18 class M { 18 class M {
19 foo() => 42; 19 foo() => 42;
20 bar() => 87; 20 bar() => 87;
21 } 21 }
22 22
23 typedef C0 = Object with M; 23 class C0 = Object with M;
24 typedef C1 = Object with M implements I0; 24 class C1 = Object with M implements I0;
25 typedef C2 = Object with M implements I1; 25 class C2 = Object with M implements I1;
26 typedef C3 = Object with M implements I0, I1; 26 class C3 = Object with M implements I0, I1;
27 typedef C4 = Object with M implements I1, I0; 27 class C4 = Object with M implements I1, I0;
28 typedef C5 = Object with M implements I2; 28 class C5 = Object with M implements I2;
29 29
30 main() { 30 main() {
31 var c0 = new C0(); 31 var c0 = new C0();
32 Expect.equals(42, c0.foo()); 32 Expect.equals(42, c0.foo());
33 Expect.equals(87, c0.bar()); 33 Expect.equals(87, c0.bar());
34 Expect.isTrue(c0 is M); 34 Expect.isTrue(c0 is M);
35 Expect.isFalse(c0 is I0); 35 Expect.isFalse(c0 is I0);
36 Expect.isFalse(c0 is I1); 36 Expect.isFalse(c0 is I1);
37 Expect.isFalse(c0 is I2); 37 Expect.isFalse(c0 is I2);
38 38
(...skipping 30 matching lines...) Expand all
69 Expect.isFalse(c1 is I2); 69 Expect.isFalse(c1 is I2);
70 70
71 var c5 = new C5(); 71 var c5 = new C5();
72 Expect.equals(42, c5.foo()); 72 Expect.equals(42, c5.foo());
73 Expect.equals(87, c5.bar()); 73 Expect.equals(87, c5.bar());
74 Expect.isTrue(c5 is M); 74 Expect.isTrue(c5 is M);
75 Expect.isTrue(c5 is I0); 75 Expect.isTrue(c5 is I0);
76 Expect.isTrue(c5 is I1); 76 Expect.isTrue(c5 is I1);
77 Expect.isTrue(c5 is I2); 77 Expect.isTrue(c5 is I2);
78 } 78 }
OLDNEW
« no previous file with comments | « tests/language/mixin_implements2_test.dart ('k') | tests/language/mixin_is_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698