| Index: pkg/analyzer/lib/src/generated/static_type_analyzer.dart
|
| diff --git a/pkg/analyzer/lib/src/generated/static_type_analyzer.dart b/pkg/analyzer/lib/src/generated/static_type_analyzer.dart
|
| index fa2bf1c4027e2e106f94caff586670f73d5e0ead..d4d0d494d22810c60abadb1ca660be1dda6404df 100644
|
| --- a/pkg/analyzer/lib/src/generated/static_type_analyzer.dart
|
| +++ b/pkg/analyzer/lib/src/generated/static_type_analyzer.dart
|
| @@ -1535,14 +1535,11 @@ class StaticTypeAnalyzer extends SimpleAstVisitor<Object> {
|
| // TODO(vsm): Use leafp's matchType here?
|
| DartType _findIteratedType(DartType type, DartType targetType) {
|
| // Set by _find if match is found
|
| - DartType result = null;
|
| + DartType result;
|
| // Elements we've already visited on a given inheritance path.
|
| - HashSet<ClassElement> visitedClasses = null;
|
| + HashSet<ClassElement> visitedClasses;
|
|
|
| - while (type is TypeParameterType) {
|
| - TypeParameterElement element = type.element;
|
| - type = element.bound;
|
| - }
|
| + type = type.resolveToBound(_typeProvider.objectType);
|
|
|
| bool _find(InterfaceType type) {
|
| ClassElement element = type.element;
|
|
|