| Index: pkg/analyzer/lib/src/generated/testing/element_factory.dart
|
| diff --git a/pkg/analyzer/lib/src/generated/testing/element_factory.dart b/pkg/analyzer/lib/src/generated/testing/element_factory.dart
|
| index 0dc3c7b585346e137d60115be755ad556fd6bf68..e3969ae4eb1bb8ea80b7a128d92edccca1a586b7 100644
|
| --- a/pkg/analyzer/lib/src/generated/testing/element_factory.dart
|
| +++ b/pkg/analyzer/lib/src/generated/testing/element_factory.dart
|
| @@ -559,8 +559,12 @@ class ElementFactory {
|
| if (isConst) {
|
| ConstTopLevelVariableElementImpl constant =
|
| new ConstTopLevelVariableElementImpl(AstFactory.identifier3(name));
|
| - constant.constantInitializer = AstFactory.instanceCreationExpression2(
|
| + InstanceCreationExpression initializer = AstFactory.instanceCreationExpression2(
|
| Keyword.CONST, AstFactory.typeName(type.element));
|
| + if (type is InterfaceType) {
|
| + initializer.staticElement = type.element.unnamedConstructor;
|
| + }
|
| + constant.constantInitializer = initializer;
|
| variable = constant;
|
| } else {
|
| variable = new TopLevelVariableElementImpl(name, -1);
|
|
|