Index: pkg/analyzer/lib/src/summary/resynthesize.dart |
diff --git a/pkg/analyzer/lib/src/summary/resynthesize.dart b/pkg/analyzer/lib/src/summary/resynthesize.dart |
index bd764d409841bab943ea72506f3eabaa8bd4def5..73f09c312803cbd43f08686ab6321eb1fb9dedc8 100644 |
--- a/pkg/analyzer/lib/src/summary/resynthesize.dart |
+++ b/pkg/analyzer/lib/src/summary/resynthesize.dart |
@@ -1294,8 +1294,7 @@ class _ReferenceInfo { |
InterfaceTypeImpl type = |
new InterfaceTypeImpl.elementWithNameAndArgs(element, name, () { |
if (typeArguments == null) { |
- if (libraryResynthesizer.summaryResynthesizer.strongMode && |
- instantiateToBoundsAllowed) { |
+ if (libraryResynthesizer.summaryResynthesizer.strongMode) { |
InterfaceType instantiatedToBounds = libraryResynthesizer |
.summaryResynthesizer.context.typeSystem |
.instantiateToBounds(element.type) as InterfaceType; |
@@ -1320,8 +1319,7 @@ class _ReferenceInfo { |
if (numTypeArguments == numTypeParameters) { |
typeArguments = |
_buildTypeArguments(numTypeArguments, getTypeArgument); |
- } else if (libraryResynthesizer.summaryResynthesizer.strongMode && |
- instantiateToBoundsAllowed) { |
+ } else if (libraryResynthesizer.summaryResynthesizer.strongMode) { |
FunctionType instantiatedToBounds = libraryResynthesizer |
.summaryResynthesizer.context.typeSystem |
.instantiateToBounds(element.type) as FunctionType; |