Index: pkg/compiler/lib/src/enqueue.dart |
diff --git a/pkg/compiler/lib/src/enqueue.dart b/pkg/compiler/lib/src/enqueue.dart |
index 056db9f2f7241b78c30938459210f8e5aeb2f408..ebbef36b1c274fbd11fd75ff30c385e0561d199e 100644 |
--- a/pkg/compiler/lib/src/enqueue.dart |
+++ b/pkg/compiler/lib/src/enqueue.dart |
@@ -516,6 +516,9 @@ abstract class Enqueuer { |
void registerStaticUse(Element element) { |
if (element == null) return; |
assert(invariant(element, element.isDeclaration)); |
+ if (Elements.isStaticOrTopLevel(element) && element.isField) { |
+ universe.registerStaticFieldUse(element); |
+ } |
addToWorkList(element); |
compiler.backend.registerStaticUse(element, this); |
} |