Index: pkg/compiler/lib/src/serialization/element_serialization.dart |
diff --git a/pkg/compiler/lib/src/serialization/element_serialization.dart b/pkg/compiler/lib/src/serialization/element_serialization.dart |
index d9877a47400d74d13a84a16a114cd0f955e82265..86c3337ac57553c2a3f2851236f8f84b88791f58 100644 |
--- a/pkg/compiler/lib/src/serialization/element_serialization.dart |
+++ b/pkg/compiler/lib/src/serialization/element_serialization.dart |
@@ -308,10 +308,13 @@ class ClassSerializer implements ElementSerializer { |
mixins = mixins.reversed.toList(); |
InterfaceType supertype = element.thisType.asInstanceOf(superclass); |
- |
encoder.setType(Key.SUPERTYPE, supertype); |
encoder.setTypes(Key.MIXINS, mixins); |
encoder.setTypes(Key.INTERFACES, element.interfaces.toList()); |
+ FunctionType callType = element.declaration.callType; |
+ if (callType != null) { |
+ encoder.setType(Key.CALL_TYPE, element.callType); |
+ } |
if (element.isMixinApplication) { |
MixinApplicationElement mixinElement = element; |