Index: pkg/analyzer/lib/src/dart/element/type.dart |
diff --git a/pkg/analyzer/lib/src/dart/element/type.dart b/pkg/analyzer/lib/src/dart/element/type.dart |
index c1feff9e4553d795f1e3cf4d195c9f937f4c4673..4c3749924ca709a5d4c6998d8c4744f8d3fbbb3c 100644 |
--- a/pkg/analyzer/lib/src/dart/element/type.dart |
+++ b/pkg/analyzer/lib/src/dart/element/type.dart |
@@ -602,13 +602,7 @@ class FunctionTypeImpl extends TypeImpl implements FunctionType { |
// Create type formals with specialized bounds. |
// For example `<U extends T>` where T comes from an outer scope. |
- List<TypeParameterElement> result = |
- new List<TypeParameterElement>(formalCount); |
- |
- for (int i = 0; i < formalCount; i++) { |
- result[i] = TypeParameterMember.from(baseTypeFormals[i], this); |
- } |
- return result; |
+ return TypeParameterMember.from(baseTypeFormals, this); |
} |
@override |