Index: sdk/lib/_internal/compiler/implementation/closure.dart |
=================================================================== |
--- sdk/lib/_internal/compiler/implementation/closure.dart (revision 19293) |
+++ sdk/lib/_internal/compiler/implementation/closure.dart (working copy) |
@@ -447,11 +447,10 @@ |
} |
if (outermostElement.isMember() && |
compiler.world.needsRti(outermostElement.getEnclosingClass())) { |
- if (outermostElement.isInstanceMember() |
- || outermostElement.isGenerativeConstructor()) { |
- if (hasTypeVariable(type)) useLocal(closureData.thisElement); |
- } else if (outermostElement.isFactoryConstructor()) { |
+ if (outermostElement.isConstructor()) { |
analyzeTypeVariables(type); |
+ } else if (outermostElement.isInstanceMember()) { |
+ if (hasTypeVariable(type)) useLocal(closureData.thisElement); |
} |
} |