Index: pkg/compiler/lib/src/resolution/members.dart |
diff --git a/pkg/compiler/lib/src/resolution/members.dart b/pkg/compiler/lib/src/resolution/members.dart |
index f93553d2aea4569e0a59d908dc88458000f1b6d7..16843b3333342605ace7f0962930985b4e6c28fb 100644 |
--- a/pkg/compiler/lib/src/resolution/members.dart |
+++ b/pkg/compiler/lib/src/resolution/members.dart |
@@ -3681,13 +3681,10 @@ class ResolverVisitor extends MappingVisitor<ResolutionResult> { |
isValidAsConstant = false; |
} |
- registry.registerStaticUse( |
- new StaticUse.constructorRedirect(redirectionTarget)); |
- // TODO(johnniwinther): Register the effective target type as part of the |
- // static use instead. |
- registry.registerTypeUse(new TypeUse.instantiation(redirectionTarget |
- .enclosingClass.thisType |
- .subst(type.typeArguments, targetClass.typeVariables))); |
+ registry.registerStaticUse(new StaticUse.constructorRedirect( |
+ redirectionTarget, |
+ redirectionTarget.enclosingClass.thisType |
+ .subst(type.typeArguments, targetClass.typeVariables))); |
if (resolution.commonElements.isSymbolConstructor(enclosingElement)) { |
registry.registerFeature(Feature.SYMBOL_CONSTRUCTOR); |
} |