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 fda2902493f1d4d7c47cc0b80fa95ffab52b282b..65f879313c6966ecb0e545ce03dfee2dc5aed09f 100644 |
--- a/pkg/analyzer/lib/src/summary/resynthesize.dart |
+++ b/pkg/analyzer/lib/src/summary/resynthesize.dart |
@@ -1625,7 +1625,8 @@ class _UnitResynthesizer { |
} else { |
DartType getTypeArgument(int i) { |
if (i < type.typeArguments.length) { |
- return buildType(type.typeArguments[i], typeParameterContext); |
+ return buildType(type.typeArguments[i], typeParameterContext, |
+ declaredType: declaredType); |
} else { |
return DynamicTypeImpl.instance; |
} |