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

Unified Diff: pkg/analyzer/lib/src/dart/element/type.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/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 aedd7b2ac723a2194ab07f30b3eece2a8ff05fdf..475383e265eda736671e515c18df98257dbe19d7 100644
--- a/pkg/analyzer/lib/src/dart/element/type.dart
+++ b/pkg/analyzer/lib/src/dart/element/type.dart
@@ -688,7 +688,7 @@ class FunctionTypeImpl extends TypeImpl implements FunctionType {
// base types.
assert(this.prunedTypedefs == null);
List<DartType> typeArgs = typeArguments
- .map((TypeImpl t) => t.pruned(prune))
+ .map((DartType t) => (t as TypeImpl).pruned(prune))
.toList(growable: false);
return new FunctionTypeImpl._(
element, name, prune, typeArgs, _isInstantiated);
@@ -1616,8 +1616,9 @@ class InterfaceTypeImpl extends TypeImpl implements InterfaceType {
// base types.
assert(this.prunedTypedefs == null);
InterfaceTypeImpl result = new InterfaceTypeImpl._(element, name, prune);
- result.typeArguments =
- typeArguments.map((TypeImpl t) => t.pruned(prune)).toList();
+ result.typeArguments = typeArguments
+ .map((DartType t) => (t as TypeImpl).pruned(prune))
+ .toList();
return result;
}
}

Powered by Google App Engine
This is Rietveld 408576698