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

Unified Diff: tests/language/mixin_mixin7_test.dart

Issue 2302173003: Dynamicize some mixin type tests (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | tests/language/mixin_regress_13688_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/mixin_mixin7_test.dart
diff --git a/tests/language/mixin_mixin7_test.dart b/tests/language/mixin_mixin7_test.dart
index 9bbb4932001983419eced5ccbd998a8166c3a748..1d8fd3093e89d55caab91ef2ddbc335fb7a06725 100644
--- a/tests/language/mixin_mixin7_test.dart
+++ b/tests/language/mixin_mixin7_test.dart
@@ -22,6 +22,9 @@ class B<T> = Object with A implements J<T>; // A is raw.
class C<T> = S<List<T>> with B implements K<T>; // B is raw.
+@NoInline() @AssumeDynamic()
+dyn(x) => x;
+
main() {
var c = new C<int>();
Expect.equals("dynamic", c.m().toString());
@@ -31,4 +34,13 @@ main() {
Expect.isTrue(c is S<List<int>>);
Expect.isTrue(c is A);
Expect.isTrue(c is M);
+
+ Expect.equals("dynamic", dyn(c).m().toString());
+ Expect.isTrue(dyn(c) is K<int>);
+ Expect.isTrue(dyn(c) is J);
+ Expect.isTrue(dyn(c) is I);
+ Expect.isTrue(dyn(c) is S<List<int>>);
+ Expect.isTrue(dyn(c) is A);
+ Expect.isTrue(dyn(c) is M);
+
}
« no previous file with comments | « no previous file | tests/language/mixin_regress_13688_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698