Index: pkg/compiler/lib/src/serialization/modelz.dart |
diff --git a/pkg/compiler/lib/src/serialization/modelz.dart b/pkg/compiler/lib/src/serialization/modelz.dart |
index 87f5fbceea5a8f8b7dcc1560eb4420f003181e21..a03ef2f2b12f68251d0365defecf0bac6df40494 100644 |
--- a/pkg/compiler/lib/src/serialization/modelz.dart |
+++ b/pkg/compiler/lib/src/serialization/modelz.dart |
@@ -835,7 +835,8 @@ abstract class ClassElementMixin |
@override |
ConstructorElement lookupDefaultConstructor() { |
ConstructorElement constructor = lookupConstructor(""); |
- if (constructor != null && constructor.parameters.isEmpty) { |
+ if (constructor != null && |
+ constructor.functionSignature.requiredParameterCount == 0) { |
return constructor; |
} |
return null; |