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 71af9e9363334de48ff3975de979730630f03576..a8d2788fffebf53c13b6104cfeebfb01202b047f 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 |
@@ -244,7 +244,9 @@ class _InstrumentationValueForType extends fasta.InstrumentationValue { |
void _appendType(StringBuffer buffer, DartType type) { |
if (type is FunctionType) { |
- _appendTypeArguments(buffer, type.typeArguments); |
+ if (type.typeFormals.isNotEmpty) { |
+ _appendTypeArguments(buffer, type.typeArguments); |
+ } |
_appendParameters(buffer, type.parameters); |
buffer.write(' -> '); |
_appendType(buffer, type.returnType); |