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

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

Issue 12018014: Start allowing mixin application extensions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Extend test cases. Created 7 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 | Annotate | Revision Log
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 class S { } 5 class S { }
6 class M1 { } 6 class M1 { }
7 class M2 { } 7 class M2 { }
8 8
9 typedef C = S with M1; 9 class C extends S with M1 { }
10 typedef D = S with M1, M2; 10 class D extends S with M1, M2 { }
11 typedef E = S with M2, M1; 11 class E extends S with M2, M1 { }
12 class F extends E { } 12 class F extends E { }
13 13
14 typedef C_ = S with M1; 14 class C_ extends S with M1 { }
15 typedef D_ = S with M1, M2; 15 class D_ extends S with M1, M2 { }
16 typedef E_ = S with M2, M1; 16 class E_ extends S with M2, M1 { }
17 class F_ extends E_ { } 17 class F_ extends E_ { }
18 18
19 main() { 19 main() {
20 var c = new C(); 20 var c = new C();
21 Expect.isTrue(c is C); 21 Expect.isTrue(c is C);
22 Expect.isFalse(c is D); 22 Expect.isFalse(c is D);
23 Expect.isFalse(c is E); 23 Expect.isFalse(c is E);
24 Expect.isFalse(c is F); 24 Expect.isFalse(c is F);
25 Expect.isTrue(c is S); 25 Expect.isTrue(c is S);
26 Expect.isTrue(c is M1); 26 Expect.isTrue(c is M1);
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 Expect.isFalse(e is C_); 68 Expect.isFalse(e is C_);
69 Expect.isFalse(e is D_); 69 Expect.isFalse(e is D_);
70 Expect.isFalse(e is E_); 70 Expect.isFalse(e is E_);
71 Expect.isFalse(e is F_); 71 Expect.isFalse(e is F_);
72 72
73 Expect.isFalse(f is C_); 73 Expect.isFalse(f is C_);
74 Expect.isFalse(f is D_); 74 Expect.isFalse(f is D_);
75 Expect.isFalse(f is E_); 75 Expect.isFalse(f is E_);
76 Expect.isFalse(f is F_); 76 Expect.isFalse(f is F_);
77 } 77 }
OLDNEW
« no previous file with comments | « tests/language/mixin_extends_field_test.dart ('k') | tests/language/mixin_extends_method_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698