| 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 0ee0b9795dc44fdb255d51b4e1b97b404fc96272..8d6aec0a5357e32d1dfde221bcc0d193a0b417d7 100644
|
| --- a/pkg/analyzer/lib/src/dart/element/type.dart
|
| +++ b/pkg/analyzer/lib/src/dart/element/type.dart
|
| @@ -774,7 +774,8 @@ class FunctionTypeImpl extends TypeImpl implements FunctionType {
|
| //
|
| // Now instantiate([V]), and the result should be:
|
| // {U/T, V/S} T -> S.
|
| - List<DartType> newTypeArgs = typeArguments.toList();
|
| + List<DartType> newTypeArgs = <DartType>[];
|
| + newTypeArgs.addAll(typeArguments);
|
| newTypeArgs.addAll(argumentTypes);
|
|
|
| return new FunctionTypeImpl._(
|
|
|