| Index: sdk/lib/_internal/compiler/implementation/resolution/members.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/resolution/members.dart b/sdk/lib/_internal/compiler/implementation/resolution/members.dart
|
| index 66c29e25b86a6f5bc40e605e9090ef5a623c27c1..ddb5a075f63cfceefd8989bd1818e898dbbaedde 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/resolution/members.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/resolution/members.dart
|
| @@ -464,14 +464,18 @@ class ResolverTask extends CompilerTask {
|
| return elements;
|
| }
|
| if (element.isSynthesized) {
|
| - Element target = element.targetConstructor;
|
| - // Ensure the signature of the synthesized element is
|
| - // resolved. This is the only place where the resolver is
|
| - // seeing this element.
|
| - element.computeSignature(compiler);
|
| - if (!target.isErroneous()) {
|
| - compiler.enqueuer.resolution.registerStaticUse(
|
| - element.targetConstructor);
|
| + if (isConstructor) {
|
| + Element target = element.targetConstructor;
|
| + // Ensure the signature of the synthesized element is
|
| + // resolved. This is the only place where the resolver is
|
| + // seeing this element.
|
| + element.computeSignature(compiler);
|
| + if (!target.isErroneous()) {
|
| + compiler.enqueuer.resolution.registerStaticUse(
|
| + element.targetConstructor);
|
| + }
|
| + } else {
|
| + assert(element.isDeferredLoaderGetter());
|
| }
|
| return _ensureTreeElements(element);
|
| }
|
|
|