Index: sdk/lib/_internal/compiler/implementation/resolution/members.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/resolution/members.dart b/sdk/lib/_internal/compiler/implementation/resolution/members.dart |
index 75e1c980b66c6d421c4a23e148da32143972b1e5..4c5a6a9d91e0933121326779a54db10c7279f816 100644 |
--- a/sdk/lib/_internal/compiler/implementation/resolution/members.dart |
+++ b/sdk/lib/_internal/compiler/implementation/resolution/members.dart |
@@ -3200,6 +3200,7 @@ class ResolverVisitor extends MappingVisitor<ResolutionResult> { |
}); |
registry.registerStaticUse(redirectionTarget); |
+ // TODO(johnniwinther): Register the effective target type instead. |
registry.registerInstantiatedClass( |
redirectionTarget.enclosingClass.declaration); |
if (isSymbolConstructor) { |
@@ -3297,6 +3298,8 @@ class ResolverVisitor extends MappingVisitor<ResolutionResult> { |
compiler.reportError(node.send.selector, |
MessageKind.TYPE_VARIABLE_IN_CONSTANT); |
} |
+ // TODO(johniwinther): Avoid registration of `type` in face of redirecting |
+ // factory constructors. |
registry.registerInstantiatedType(type); |
if (constructor.isFactoryConstructor && !type.typeArguments.isEmpty) { |
registry.registerFactoryWithTypeArguments(); |