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..e6529b46c895ef05a19eb25816e33efd161e5ebb 100644 |
--- a/pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart |
+++ b/pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart |
@@ -851,7 +851,8 @@ class TypeGraphInferrerEngine |
// For non-container types, the constant handler does |
// constant folding that could give more precise results. |
ConstantValue value = |
- compiler.backend.constants.getConstantValueForVariable(element); |
+ compiler.backend.constants.getConstantValue( |
+ fieldElement.constant); |
if (value != null) { |
if (value.isFunction) { |
FunctionConstantValue functionConstant = value; |