| 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;
|
| }
|
| }
|
|
|