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

Unified Diff: tests/language/mixin_type_parameter4_test.dart

Issue 19811002: Do not emit substitutions for unnamed mixin applications. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 | « sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.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_type_parameter4_test.dart
diff --git a/tests/compiler/dart2js_extra/generics_factories_test.dart b/tests/language/mixin_type_parameter4_test.dart
similarity index 50%
copy from tests/compiler/dart2js_extra/generics_factories_test.dart
copy to tests/language/mixin_type_parameter4_test.dart
index 5ca2d5972ff0dacf51160c592504deac529e74f6..00fe43e3e55fa8fba613473dea8a6a1fd966af26 100644
--- a/tests/compiler/dart2js_extra/generics_factories_test.dart
+++ b/tests/language/mixin_type_parameter4_test.dart
@@ -2,23 +2,22 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-// Test that factories are marked as needing rti.
-
import "package:expect/expect.dart";
-class A<T> {
- foo(o) => o is T;
- factory A.c() => new B<T>();
- A();
-}
+class R<E, F> {}
+
+class M<J> implements R<bool, J> {}
-class B<T> extends A<T> {}
+class B1 {}
+class B2 {}
-class C {}
+class A1<T> extends B1 with M<T> {}
-class D {}
+typedef A2<T> = B2 with M<T>;
main() {
- Expect.isTrue(new A<C>.c().foo(new C()));
- Expect.isFalse(new A<C>.c().foo(new D()));
+ var ab = new A1<int>();
+ Expect.isTrue(ab is R<bool, int>);
+ ab = new A2<int>();
+ Expect.isTrue(ab is R<bool, int>);
}
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698