| Index: pkg/analyzer/lib/src/summary/summarize_elements.dart
|
| diff --git a/pkg/analyzer/lib/src/summary/summarize_elements.dart b/pkg/analyzer/lib/src/summary/summarize_elements.dart
|
| index c30393678c034d307bdea3e6d0acbdf3ff8e6778..3f39a38528451162b3ff90d9392c92cb83f94799 100644
|
| --- a/pkg/analyzer/lib/src/summary/summarize_elements.dart
|
| +++ b/pkg/analyzer/lib/src/summary/summarize_elements.dart
|
| @@ -689,7 +689,7 @@ class _CompilationUnitSerializer {
|
| b.inferredTypeSlot = storeInferredType(type, context);
|
| }
|
| } else {
|
| - if (type is FunctionType) {
|
| + if (type is FunctionType && type.element.isSynthetic) {
|
| b.isFunctionTyped = true;
|
| b.type = serializeTypeRef(type.returnType, parameter);
|
| b.parameters = type.parameters
|
|
|