| 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>);
|
| }
|
|
|