Index: pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart |
diff --git a/pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart b/pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart |
index 1cfc52a9c5b7015a64355a3361d728424dcb588f..29364327f6d8f371524dd7a321761b5afa03dc3c 100644 |
--- a/pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart |
+++ b/pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart |
@@ -850,8 +850,8 @@ class TypeGraphInferrerEngine |
if (type is! ListTypeInformation && type is! MapTypeInformation) { |
// For non-container types, the constant handler does |
// constant folding that could give more precise results. |
- ConstantValue value = |
- compiler.backend.constants.getConstantValueForVariable(element); |
+ ConstantValue value = compiler.backend.constants |
+ .getConstantValue(fieldElement.constant); |
if (value != null) { |
if (value.isFunction) { |
FunctionConstantValue functionConstant = value; |