Index: pkg/analyzer/lib/src/generated/type_system.dart |
diff --git a/pkg/analyzer/lib/src/generated/type_system.dart b/pkg/analyzer/lib/src/generated/type_system.dart |
index cce26259153fcfdaf5b134747677a30b7ba39996..dc3bc7ec384d555346bfff8ef9db29bc6cf417c7 100644 |
--- a/pkg/analyzer/lib/src/generated/type_system.dart |
+++ b/pkg/analyzer/lib/src/generated/type_system.dart |
@@ -50,11 +50,11 @@ class StrongTypeSystemImpl implements TypeSystem { |
FunctionTypeImpl fnType, |
List<DartType> correspondingParameterTypes, |
List<DartType> argumentTypes) { |
- ExecutableElement element = fnType.element; |
+ TypeParameterizedElement element = fnType.element; |
if (element.typeParameters.isEmpty) { |
return fnType; |
} |
- |
+ assert(correspondingParameterTypes.length == argumentTypes.length); |
int numParams = element.typeParameters.length; |
List<DartType> fnTypeParams = fnType.typeArguments; |
fnTypeParams = fnTypeParams.sublist(0, numParams); |