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

Unified Diff: pkg/analyzer/lib/src/generated/resolver.dart

Issue 1847633002: Fix more strong mode errors in analyzer (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix copied comment Created 4 years, 9 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
Index: pkg/analyzer/lib/src/generated/resolver.dart
diff --git a/pkg/analyzer/lib/src/generated/resolver.dart b/pkg/analyzer/lib/src/generated/resolver.dart
index 48490141f235f045e2c72d3876bd718fd4be8067..17cef9bf9b74c9ef8e8d2176938166d3917fc871 100644
--- a/pkg/analyzer/lib/src/generated/resolver.dart
+++ b/pkg/analyzer/lib/src/generated/resolver.dart
@@ -7543,8 +7543,10 @@ class ResolverVisitor extends ScopedVisitor {
// Same number of type formals. Instantiate the function type so its
// parameter and return type are in terms of the surrounding context.
- return fnType.instantiate(
- typeParameters.map((t) => t.name.staticElement.type).toList());
+ return fnType.instantiate(typeParameters
+ .map((TypeParameter t) =>
+ (t.name.staticElement as TypeParameterElement).type)
+ .toList());
}
/**

Powered by Google App Engine
This is Rietveld 408576698