Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Unified Diff: pkg/analyzer/lib/src/dart/element/type.dart

Issue 2653873002: fix #28141, fix super generic method bounds check (Closed)
Patch Set: split loops and merge Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/member.dart ('k') | pkg/analyzer/lib/src/generated/error_verifier.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/member.dart ('k') | pkg/analyzer/lib/src/generated/error_verifier.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698