Index: sdk/lib/_internal/compiler/implementation/ssa/builder.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/builder.dart b/sdk/lib/_internal/compiler/implementation/ssa/builder.dart |
index affa364be26d690b5c01e37606e214d2a02861f9..1776267d8b82b845ef33b7727b93166a6a9aafd2 100644 |
--- a/sdk/lib/_internal/compiler/implementation/ssa/builder.dart |
+++ b/sdk/lib/_internal/compiler/implementation/ssa/builder.dart |
@@ -3317,6 +3317,9 @@ class SsaBuilder extends ResolvedVisitor implements Visitor { |
} |
} |
+ if (constructor.isFactoryConstructor() && !type.typeArguments.isEmpty) { |
+ compiler.enqueuer.codegen.registerFactoryWithTypeArguments(); |
+ } |
HType elementType = computeType(constructor); |
HInstruction newInstance = new HInvokeStatic(inputs, elementType); |
pushWithPosition(newInstance, node); |