| Index: pkg/analyzer/test/src/task/strong/front_end_inference_test.dart
|
| diff --git a/pkg/analyzer/test/src/task/strong/front_end_inference_test.dart b/pkg/analyzer/test/src/task/strong/front_end_inference_test.dart
|
| index 9013322fc8352437c39ff1a5fe4cfb35cb5f0244..55be398a41c848fbaa69a66ec9c1d4ee53d2eba4 100644
|
| --- a/pkg/analyzer/test/src/task/strong/front_end_inference_test.dart
|
| +++ b/pkg/analyzer/test/src/task/strong/front_end_inference_test.dart
|
| @@ -275,11 +275,15 @@ class _InstrumentationVisitor extends RecursiveAstVisitor<Null> {
|
|
|
| visitMethodInvocation(MethodInvocation node) {
|
| super.visitMethodInvocation(node);
|
| - var inferredTypeArguments = _getInferredFunctionTypeArguments(
|
| - node.function.staticType, node.staticInvokeType, node.typeArguments)
|
| - .toList();
|
| - if (inferredTypeArguments.isNotEmpty) {
|
| - _recordTypeArguments(node.methodName.offset, inferredTypeArguments);
|
| + if (node.typeArguments == null) {
|
| + var inferredTypeArguments = _getInferredFunctionTypeArguments(
|
| + node.function.staticType,
|
| + node.staticInvokeType,
|
| + node.typeArguments)
|
| + .toList();
|
| + if (inferredTypeArguments.isNotEmpty) {
|
| + _recordTypeArguments(node.methodName.offset, inferredTypeArguments);
|
| + }
|
| }
|
| }
|
|
|
|
|