Index: pkg/compiler/lib/src/ssa/kernel_impact.dart |
diff --git a/pkg/compiler/lib/src/ssa/kernel_impact.dart b/pkg/compiler/lib/src/ssa/kernel_impact.dart |
index a2f9279ab3d46d48e7c489d3b5ad8d090dca1f52..c1f53ca930d876de0c02be960e284e3a72f59fcf 100644 |
--- a/pkg/compiler/lib/src/ssa/kernel_impact.dart |
+++ b/pkg/compiler/lib/src/ssa/kernel_impact.dart |
@@ -83,6 +83,9 @@ class KernelImpactBuilder extends ir.Visitor { |
checkType(field.type); |
if (field.initializer != null) { |
visitNode(field.initializer); |
+ if (!field.isConst) { |
+ impactBuilder.registerFeature(Feature.LAZY_FIELD); |
+ } |
} else { |
impactBuilder.registerFeature(Feature.FIELD_WITHOUT_INITIALIZER); |
} |