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

Unified Diff: test/browser/runtime_tests.js

Issue 1058653002: implement mixins in subtype checks, more codegen fixes (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 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
Index: test/browser/runtime_tests.js
diff --git a/test/browser/runtime_tests.js b/test/browser/runtime_tests.js
index 32dc5e0941f1af41ea5dad82701452c3ff94bb51..d27564c9c88d006aac39c6475cabe2cb13b45d54 100644
--- a/test/browser/runtime_tests.js
+++ b/test/browser/runtime_tests.js
@@ -262,4 +262,16 @@ suite('instanceOf', () => {
//checkType((x) => x, type((void _(x)) {}));
});
+ test('mixins', () => {
+ let c = collection;
+ var s1 = new (c.SplayTreeSet$(String))();
+
+ checkType(s1, c.IterableMixin);
+ checkType(s1, c.IterableMixin$(String));
+ checkType(s1, c.IterableMixin$(int), false);
+
+ checkType(s1, c.SetMixin);
+ checkType(s1, c.SetMixin$(String));
+ checkType(s1, c.SetMixin$(int), false);
+ });
});

Powered by Google App Engine
This is Rietveld 408576698