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

Unified Diff: pkg/analyzer/test/src/task/strong/front_end_inference_test.dart

Issue 2925693002: Do not annotate type parameters of instantiated function types. (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « no previous file | pkg/front_end/test/fasta/strong.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | pkg/front_end/test/fasta/strong.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698