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

Side by Side Diff: tests/language/mixin_mixin4_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_mixin3_test.dart ('k') | tests/language/mixin_mixin5_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 class I<T> { } 7 class I<T> { }
8 8
9 class J<T> { } 9 class J<T> { }
10 10
11 class S<T> { } 11 class S<T> { }
12 12
13 class M<T> { 13 class M<T> {
14 t() { return T; } 14 t() { return T; }
15 } 15 }
16 16
17 typedef A<U, V> = Object with M<Map<U, V>> implements I<V>; 17 class A<U, V> = Object with M<Map<U, V>> implements I<V>;
18 18
19 typedef C<T, K> = S<T> with A<T, List<K>> implements J<K>; 19 class C<T, K> = S<T> with A<T, List<K>> implements J<K>;
20 20
21 main() { 21 main() {
22 var c = new C<int, bool>(); 22 var c = new C<int, bool>();
23 Expect.equals("Map<int, List<bool>>", c.t().toString()); 23 Expect.equals("Map<int, List<bool>>", c.t().toString());
24 Expect.isTrue(c is I<List<bool>>); 24 Expect.isTrue(c is I<List<bool>>);
25 Expect.isTrue(c is J<bool>); 25 Expect.isTrue(c is J<bool>);
26 Expect.isTrue(c is S<int>); 26 Expect.isTrue(c is S<int>);
27 Expect.isTrue(c is A<int, List<bool>>); 27 Expect.isTrue(c is A<int, List<bool>>);
28 Expect.isTrue(c is M<Map<int, List<bool>>>); 28 Expect.isTrue(c is M<Map<int, List<bool>>>);
29 } 29 }
OLDNEW
« no previous file with comments | « tests/language/mixin_mixin3_test.dart ('k') | tests/language/mixin_mixin5_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698