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

Unified Diff: tests/language/mixin_naming_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/language/mixin_extends_method_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/mixin_naming_test.dart
diff --git a/tests/language/mixin_naming_test.dart b/tests/language/mixin_naming_test.dart
index 6aaa2acd17c5c57a9d2402de87671dcf93960155..b3b4a9c6bf85c6a93c9b1786963b2eb10b68287c 100644
--- a/tests/language/mixin_naming_test.dart
+++ b/tests/language/mixin_naming_test.dart
@@ -8,6 +8,7 @@ class M2 { }
class M3 { }
typedef C = S with M1, M2, M3;
+class D extends S with M1, M2, M3 { }
class S_M1 { }
class S_M1_M2 { }
@@ -15,18 +16,28 @@ class S_M1_M2 { }
main() {
var c = new C();
Expect.isTrue(c is C);
+ Expect.isFalse(c is D);
Expect.isTrue(c is S);
Expect.isFalse(c is S_M1);
Expect.isFalse(c is S_M1_M2);
+ var d = new D();
+ Expect.isFalse(d is C);
+ Expect.isTrue(d is D);
+ Expect.isTrue(d is S);
+ Expect.isFalse(d is S_M1);
+ Expect.isFalse(d is S_M1_M2);
+
var sm = new S_M1();
Expect.isFalse(sm is C);
+ Expect.isFalse(sm is D);
Expect.isFalse(sm is S);
Expect.isTrue(sm is S_M1);
Expect.isFalse(sm is S_M1_M2);
var smm = new S_M1_M2();
Expect.isFalse(smm is C);
+ Expect.isFalse(smm is D);
Expect.isFalse(smm is S);
Expect.isFalse(smm is S_M1);
Expect.isTrue(smm is S_M1_M2);
« no previous file with comments | « tests/language/mixin_extends_method_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698