| Index: tests/compiler/dart2js/kernel/impact_test.dart
|
| diff --git a/tests/compiler/dart2js/kernel/impact_test.dart b/tests/compiler/dart2js/kernel/impact_test.dart
|
| index 230820ffeb0878add32d7e893fbe4d70e907f7a9..5eca98b1f4a7f6fd587d6bcfa5e0667610e4aa6b 100644
|
| --- a/tests/compiler/dart2js/kernel/impact_test.dart
|
| +++ b/tests/compiler/dart2js/kernel/impact_test.dart
|
| @@ -74,6 +74,10 @@ main() {
|
| testFactoryInvokeGeneric();
|
| testFactoryInvokeGenericRaw();
|
| testFactoryInvokeGenericDynamic();
|
| + testRedirectingFactoryInvoke();
|
| + testRedirectingFactoryInvokeGeneric();
|
| + testRedirectingFactoryInvokeGenericRaw();
|
| + testRedirectingFactoryInvokeGenericDynamic();
|
| }
|
|
|
| testEmpty() {}
|
| @@ -198,13 +202,29 @@ testFactoryInvokeGenericRaw() {
|
| testFactoryInvokeGenericDynamic() {
|
| new GenericClass<dynamic, dynamic>.fact();
|
| }
|
| +testRedirectingFactoryInvoke() {
|
| + new Class.redirect();
|
| +}
|
| +testRedirectingFactoryInvokeGeneric() {
|
| + new GenericClass<int, String>.redirect();
|
| +}
|
| +testRedirectingFactoryInvokeGenericRaw() {
|
| + new GenericClass.redirect();
|
| +}
|
| +testRedirectingFactoryInvokeGenericDynamic() {
|
| + new GenericClass<dynamic, dynamic>.redirect();
|
| +}
|
| ''',
|
| 'helper.dart': '''
|
| class Class {
|
| + Class.generative();
|
| factory Class.fact() => null;
|
| + factory Class.redirect() = Class.generative;
|
| }
|
| class GenericClass<X, Y> {
|
| + GenericClass.generative();
|
| factory GenericClass.fact() => null;
|
| + factory GenericClass.redirect() = GenericClass.generative;
|
| }
|
| ''',
|
| };
|
|
|