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

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

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files 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
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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<U extends Set<V>, V> { } 11 class S<U extends Set<V>, V> {}
12 12
13 class M<U, V, T extends Map<U, V>> { 13 class M<U, V, T extends Map<U, V>> {
14 t() { return T; } 14 t() {
15 return T;
16 }
15 } 17 }
16 18
17 class A<U, V extends List> = Object with M<U, V, Map<U, V>> implements I<V>; 19 class A<U, V extends List> = Object with M<U, V, Map<U, V>> implements I<V>;
18 20
19 class C<T, K> = S<Set<T>, T> with A<T, List<K>> implements J<K>; 21 class C<T, K> = S<Set<T>, T> with A<T, List<K>> implements J<K>;
20 22
21 main() { 23 main() {
22 var c = new C<int, bool>(); 24 var c = new C<int, bool>();
23 Expect.equals("Map<int, List<bool>>", c.t().toString()); 25 Expect.equals("Map<int, List<bool>>", c.t().toString());
24 Expect.isTrue(c is I<List<bool>>); 26 Expect.isTrue(c is I<List<bool>>);
25 Expect.isTrue(c is J<bool>); 27 Expect.isTrue(c is J<bool>);
26 Expect.isTrue(c is S<Set<int>, int>); 28 Expect.isTrue(c is S<Set<int>, int>);
27 Expect.isTrue(c is A<int, List<bool>>); 29 Expect.isTrue(c is A<int, List<bool>>);
28 Expect.isTrue(c is M<int, List<bool>, Map<int, List<bool>>>); 30 Expect.isTrue(c is M<int, List<bool>, Map<int, List<bool>>>);
29 } 31 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698